This application only works if you have an internet connection.
in ham radio, we often use the "gray line" times to help predict DX communications
so, there are lot's of programs out there - many with graphics
(http://www.radiohobbyist.org/blog/mypics/WWVH_path.png)
Cool application ! :t
Hi minor28,
that's really cool. The map is enlargeable up to my house. Great idea. :t
Gunther
The map is not real-time.
I have played a bit more with the application with the web control that displays Google maps. Now you can open the street view, plot routes with courses and distances. You can view the azimuth on the map at desired place. If you have a GPS you can plot positions on the map. The new release interact more with the html javascript. The html code is also more readable.
Mouse-over the map, after a couple of seconds it crashes. Win8 Pro x64
Quote
Faulting application name: Solar.exe, version: 0.0.0.0, time stamp: 0x535231fd
Faulting module name: Solar.exe, version: 0.0.0.0, time stamp: 0x535231fd
Exception code: 0xc0000005
Fault offset: 0x0000566c
Windbg output
Microsoft (R) Windows Debugger Version 6.2.9200.20512 X86
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: C:\Users\sinsi\Desktop\Solar\Solar.exe
Symbol search path is: srv*f:\asm\symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
ModLoad: 00400000 0041d000 image00400000
ModLoad: 77080000 771e8000 ntdll.dll
ModLoad: 76e30000 76f70000 C:\WINDOWS\SysWOW64\KERNEL32.DLL
ModLoad: 764f0000 765bf000 C:\WINDOWS\SysWOW64\KERNELBASE.dll
ModLoad: 74c30000 74d7f000 C:\WINDOWS\SysWOW64\user32.dll
ModLoad: 768e0000 76966000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9600.16384_none_7c55c866aa0c3ff0\comctl32.dll
ModLoad: 762d0000 76311000 C:\WINDOWS\SysWOW64\SHLWAPI.dll
ModLoad: 76420000 764a7000 C:\WINDOWS\SysWOW64\oleaut32.dll
ModLoad: 767d0000 768db000 C:\WINDOWS\SysWOW64\ole32.dll
ModLoad: 76d20000 76e28000 C:\WINDOWS\SysWOW64\gdi32.dll
ModLoad: 76130000 7627d000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.16384_none_dadf89385bc5c7d7\gdiplus.dll
ModLoad: 765c0000 76637000 C:\WINDOWS\SysWOW64\advapi32.dll
ModLoad: 74af0000 74bae000 C:\WINDOWS\SysWOW64\msvcrt.dll
ModLoad: 74d80000 74ece000 C:\WINDOWS\SysWOW64\combase.dll
ModLoad: 769e0000 76a91000 C:\WINDOWS\SysWOW64\RPCRT4.dll
ModLoad: 760f0000 7612e000 C:\WINDOWS\SysWOW64\sechost.dll
ModLoad: 74ab0000 74acd000 C:\WINDOWS\SysWOW64\SspiCli.dll
ModLoad: 74aa0000 74aa9000 C:\WINDOWS\SysWOW64\CRYPTBASE.dll
ModLoad: 74a40000 74a91000 C:\WINDOWS\SysWOW64\bcryptPrimitives.dll
(288.1778): Break instruction exception - code 80000003 (first chance)
eax=00000000 ebx=00000000 ecx=de780000 edx=00000000 esi=7ffde000 edi=00000000
eip=77132645 esp=0018faec ebp=0018fb18 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000246
ntdll!LdrpDoDebuggerBreak+0x2b:
77132645 cc int 3
0:000> g
ModLoad: 76aa0000 76ac5000 C:\WINDOWS\SysWOW64\IMM32.DLL
ModLoad: 76320000 76417000 C:\WINDOWS\SysWOW64\MSCTF.dll
ModLoad: 6f2a0000 6f2a9000 C:\WINDOWS\SysWOW64\kernel.appcore.dll
ModLoad: 6ce60000 6cf3c000 C:\WINDOWS\SysWOW64\uxtheme.dll
ModLoad: 6eda0000 6edb9000 C:\WINDOWS\SysWOW64\dwmapi.dll
ModLoad: 6d100000 6d2e5000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.16384_none_a9f4965301334e09\comctl32.DLL
ModLoad: 74bb0000 74c2d000 C:\WINDOWS\SysWOW64\clbcatq.dll
ModLoad: 5d000000 5d1a5000 C:\Windows\SysWOW64\msxml6.dll
ModLoad: 5f120000 5f19b000 C:\WINDOWS\SysWOW64\sxs.dll
ModLoad: 63470000 63594000 C:\WINDOWS\SysWOW64\urlmon.dll
ModLoad: 6f7f0000 6fa07000 C:\WINDOWS\SysWOW64\iertutil.dll
ModLoad: 6fcb0000 6fe74000 C:\WINDOWS\SysWOW64\WININET.dll
ModLoad: 6f630000 6f6a7000 C:\WINDOWS\SysWOW64\shcore.dll
ModLoad: 70870000 70879000 C:\WINDOWS\SysWOW64\Secur32.dll
ModLoad: 74ee0000 76084000 C:\WINDOWS\SysWOW64\SHELL32.dll
ModLoad: 707f0000 707fe000 C:\WINDOWS\SysWOW64\profapi.dll
ModLoad: 76970000 769bd000 C:\WINDOWS\SysWOW64\WS2_32.dll
ModLoad: 76640000 76647000 C:\WINDOWS\SysWOW64\NSI.dll
ModLoad: 61690000 6169a000 C:\WINDOWS\SysWOW64\ondemandconnroutehelper.dll
ModLoad: 6fc10000 6fca4000 C:\WINDOWS\SysWOW64\winhttp.dll
ModLoad: 6f5e0000 6f625000 C:\WINDOWS\SysWOW64\mswsock.dll
ModLoad: 76650000 767cf000 C:\WINDOWS\SysWOW64\CRYPT32.dll
ModLoad: 74ae0000 74aee000 C:\WINDOWS\SysWOW64\MSASN1.dll
ModLoad: 6cd80000 6cd9e000 C:\WINDOWS\SysWOW64\IPHLPAPI.DLL
ModLoad: 6cd70000 6cd78000 C:\WINDOWS\SysWOW64\WINNSI.DLL
ModLoad: 6cda0000 6ce1c000 C:\WINDOWS\SysWOW64\DNSAPI.dll
ModLoad: 6cd10000 6cd17000 C:\Windows\SysWOW64\rasadhlp.dll
ModLoad: 6cd20000 6cd64000 C:\WINDOWS\SysWOW64\fwpuclnt.dll
ModLoad: 6f440000 6f498000 C:\WINDOWS\SysWOW64\schannel.dll
ModLoad: 76f70000 76fa9000 C:\WINDOWS\SysWOW64\WINTRUST.dll
ModLoad: 70750000 70768000 C:\WINDOWS\SysWOW64\CRYPTSP.dll
ModLoad: 70480000 704af000 C:\WINDOWS\SysWOW64\rsaenh.dll
ModLoad: 70460000 7047d000 C:\WINDOWS\SysWOW64\bcrypt.dll
ModLoad: 703f0000 7040e000 C:\WINDOWS\SysWOW64\gpapi.dll
ModLoad: 70440000 7045c000 C:\WINDOWS\SysWOW64\ncrypt.dll
ModLoad: 70410000 7043b000 C:\WINDOWS\SysWOW64\NTASN1.dll
ModLoad: 65bb0000 65bd5000 C:\Windows\SysWOW64\cryptnet.dll
ModLoad: 76280000 762cb000 C:\WINDOWS\SysWOW64\WLDAP32.dll
ModLoad: 6cad0000 6cae6000 C:\WINDOWS\SysWOW64\ncryptsslp.dll
ModLoad: 53570000 54034000 C:\Windows\SysWOW64\ieframe.dll
ModLoad: 65c10000 65d34000 C:\WINDOWS\SysWOW64\PROPSYS.dll
ModLoad: 6d570000 6d60a000 C:\WINDOWS\SysWOW64\apphelp.dll
ModLoad: 52510000 53561000 C:\Windows\SysWOW64\mshtml.dll
ModLoad: 5b800000 5b8e4000 C:\Windows\SysWOW64\uiautomationcore.dll
ModLoad: 5e7e0000 5e7ec000 C:\WINDOWS\SysWOW64\msimtf.dll
ModLoad: 65830000 6586e000 C:\WINDOWS\SysWOW64\powrprof.dll
ModLoad: 5df40000 5dfa2000 C:\WINDOWS\SysWOW64\dxgi.dll
ModLoad: 5e960000 5e98f000 C:\WINDOWS\SysWOW64\MLANG.dll
ModLoad: 520f0000 52503000 C:\Windows\SysWOW64\jscript9.dll
ModLoad: 6f2b0000 6f2b7000 C:\WINDOWS\SysWOW64\DPAPI.DLL
ModLoad: 5cde0000 5ce11000 C:\WINDOWS\SysWOW64\msls31.dll
ModLoad: 51d20000 520e5000 C:\WINDOWS\SysWOW64\d2d1.dll
ModLoad: 62720000 62892000 C:\WINDOWS\SysWOW64\DWrite.dll
ModLoad: 5dd90000 5df3d000 C:\WINDOWS\SysWOW64\d3d11.dll
ModLoad: 5ae50000 5b04d000 C:\WINDOWS\SysWOW64\d3d10warp.dll
(288.1778): C++ EH exception - code e06d7363 (first chance)
(288.1778): C++ EH exception - code e06d7363 (first chance)
(288.1778): C++ EH exception - code e06d7363 (first chance)
(288.1778): C++ EH exception - code e06d7363 (first chance)
(288.1778): C++ EH exception - code e06d7363 (first chance)
ModLoad: 5ce20000 5cf6d000 C:\WINDOWS\SysWOW64\windowscodecs.dll
ModLoad: 5cda0000 5cde0000 C:\Windows\SysWOW64\Dxtrans.dll
ModLoad: 5e5f0000 5e604000 C:\Windows\SysWOW64\ATL.DLL
ModLoad: 5e7d0000 5e7db000 C:\Windows\SysWOW64\ddrawex.dll
ModLoad: 676c0000 677a7000 C:\Windows\SysWOW64\DDRAW.dll
ModLoad: 65e40000 65e47000 C:\Windows\SysWOW64\DCIMAN32.dll
ModLoad: 5c5b0000 5c60d000 C:\Windows\SysWOW64\Dxtmsft.dll
ModLoad: 5dfc0000 5dfdf000 C:\WINDOWS\SysWOW64\T2EMBED.DLL
ModLoad: 74a30000 74a38000 C:\WINDOWS\SysWOW64\VERSION.dll
(288.1778): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Module load completed but symbols could not be loaded for image00400000
eax=0000000e ebx=0018f320 ecx=525118a8 edx=533bb618 esi=0018fd73 edi=00190000
eip=00409a34 esp=0018eda4 ebp=0018eeac iopl=0 nv up ei ng nz na po cy
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010283
image00400000+0x9a34:
00409a34 a4 movs byte ptr es:[edi],byte ptr [esi] es:002b:00190000=41 ds:002b:0018fd73=00
I don't have win8 but win7 x32
Quote from: sinsi on April 19, 2014, 06:56:50 PM
Mouse-over the map, after a couple of seconds it crashes. Win8 Pro x64
runs fine under Win7 (64 bit). No crash.
Gunther
It also crashes after a few seconds on my windows 8.1 x64 system.
Street view has no problems.
Win 8.1 x64 :
The app minimizes to tray and becomes unresponsive after attempt to resize the window. Maximizing the window works without problems.
Street view is ok.
seemed to work well until i moused over the app window to change something
dedndave, do you also run it with win8? I cannot provoke the error.
Looks as if it's not compatible with Masm32. Why that?
Structures.inc(226) : error A2163: non-benign structure redefinition: incorrect initializers : MONITORINFO
Structures.inc(227) : error A2163: non-benign structure redefinition: incorrect initializers : MONITORINFO
GdiPlusStruct.inc(9) : error A2163: non-benign structure redefinition: incorrect initializers : ImageCodecInfo
GdiPlusStruct.inc(10) : error A2163: non-benign structure redefinition: incorrect initializers : ImageCodecInfo
GdiPlusStruct.inc(22) : error A2161: non-benign structure redefinition: too few labels : ImageCodecInfo
GdiPlusStruct.inc(25) : error A2163: non-benign structure redefinition: incorrect initializers : EncoderParameter
GdiPlusStruct.inc(33) : error A2163: non-benign structure redefinition: incorrect initializers : EncoderParameters
GdiPlusStruct.inc(50) : error A2161: non-benign structure redefinition: too few labels : BitmapData
GdiPlusStruct.inc(56) : error A2161: non-benign structure redefinition: too few labels : ColorPalette
GdiPlusConst.inc(47) : error A2005: symbol redefinition : PixelFormat32bppRGB
Clock.asm(242) : error A2136: too many arguments to INVOKE
Clock.asm(242) : error A2207: missing right parenthesis in expression
Clock.asm(242) : error A2114: INVOKE argument type mismatch : argument : 1
Clock.asm(322) : error A2136: too many arguments to INVOKE
Clock.asm(322) : error A2207: missing right parenthesis in expression
Clock.asm(322) : error A2114: INVOKE argument type mismatch : argument : 2
Clock.asm(373) : error A2136: too many arguments to INVOKE
Clock.asm(373) : error A2207: missing right parenthesis in expression
Clock.asm(373) : error A2114: INVOKE argument type mismatch : argument : 1
Clock.asm(403) : error A2136: too many arguments to INVOKE
Clock.asm(403) : error A2207: missing right parenthesis in expression
Clock.asm(403) : error A2114: INVOKE argument type mismatch : argument : 2
DrawAzimuth.asm(32) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(32) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(32) : error A2114: INVOKE argument type mismatch : argument : 1
DrawAzimuth.asm(74) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(74) : error A2208: missing left parenthesis in expression
DrawAzimuth.asm(74) : error A2114: INVOKE argument type mismatch : argument : 4
DrawAzimuth.asm(74) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(74) : error A2114: INVOKE argument type mismatch : argument : 1
DrawAzimuth.asm(103) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(103) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(103) : error A2114: INVOKE argument type mismatch : argument : 1
DrawAzimuth.asm(107) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(107) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(107) : error A2114: INVOKE argument type mismatch : argument : 2
DrawAzimuth.asm(111) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(111) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(111) : error A2114: INVOKE argument type mismatch : argument : 2
DrawAzimuth.asm(163) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(163) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(163) : error A2114: INVOKE argument type mismatch : argument : 2
DrawAzimuth.asm(165) : error A2136: too many arguments to INVOKE
DrawAzimuth.asm(165) : error A2207: missing right parenthesis in expression
DrawAzimuth.asm(165) : error A2114: INVOKE argument type mismatch : argument : 2
DrawClockFace.asm(33) : error A2136: too many arguments to INVOKE
DrawClockFace.asm(33) : error A2207: missing right parenthesis in expression
DrawClockFace.asm(33) : error A2114: INVOKE argument type mismatch : argument : 1
DrawClockFace.asm(39) : error A2136: too many arguments to INVOKE
DrawClockFace.asm(39) : error A2207: missing right parenthesis in expression
DrawClockFace.asm(39) : error A2114: INVOKE argument type mismatch : argument : 2
DrawClockFace.asm(47) : error A2136: too many arguments to INVOKE
DrawClockFace.asm(47) : error A2207: missing right parenthesis in expression
DrawClockFace.asm(47) : error A2114: INVOKE argument type mismatch : argument : 2
DrawClockFace.asm(137) : error A2136: too many arguments to INVOKE
DrawClockFace.asm(137) : error A2207: missing right parenthesis in expression
DrawClockFace.asm(137) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(36) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(36) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(36) : error A2114: INVOKE argument type mismatch : argument : 1
DrawDiagram.asm(40) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(40) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(40) : error A2114: INVOKE argument type mismatch : argument : 1
DrawDiagram.asm(44) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(44) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(44) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(60) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(60) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(60) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(97) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(97) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(97) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(142) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(142) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(142) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(148) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(148) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(148) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(176) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(176) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(176) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(195) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(195) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(195) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(205) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(205) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(205) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(226) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(226) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(226) : error A2114: INVOKE argument type mismatch : argument : 1
DrawDiagram.asm(228) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(228) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(228) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(328) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(328) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(328) : error A2114: INVOKE argument type mismatch : argument : 1
DrawDiagram.asm(377) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(377) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(377) : error A2114: INVOKE argument type mismatch : argument : 2
DrawDiagram.asm(379) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(379) : fatal error A1012: error count exceeds 100; stopping assembly
*** Assembly Error ***
sorry - forgot to mention i am using XP SP3
I have not tested on xp before. Now I have and I got the same error as you.
I have compiled with masm32 and ml version 6.14.
Quote from: minor28 on April 20, 2014, 05:03:42 PM
I have compiled with masm32 and ml version 6.14.
fatal error A1012: error count exceeds 100; stopping assembly
- did you modify includes of the original Masm32 package?
- did you rely on environment variables, e.g. path to Masm32 includes?
- did anybody else succeed in building this?
I've got the same fatal error A1012
Could you provide your build.bat or the command lines that you use to build it?
Nothing in masm32 is modified.
Solar.inc:
include windows.inc
include kernel32.inc
include user32.inc
include comctl32.inc
include shlwapi.inc
include oleaut32.inc
include ole32.inc
include gdi32.inc
include gdiplus.inc
include advapi32.inc
includelib kernel32.lib
includelib user32.lib
includelib comctl32.lib
includelib shlwapi.lib
includelib oleaut32.lib
includelib ole32.lib
includelib gdi32.lib
includelib gdiplus.lib
includelib advapi32.lib
So you are using environment variables, and apparently they are not pointing to \Masm32\include or \Masm32\includelib but to some other package. That's why it doesn't build on our PCs, probably.
Yes I am using RadAsm.
My makefile is:
c:/masm32/bin/rc.exe Solar.rc
c:/masm32/bin/ml.exe /c /coff /Cp Solar.asm
c:/masm32/bin/link.exe /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:c:\masm32\lib Solar.obj Solar.res
I attach a new Solar.inc with full path to includes.
The crash appears in the _FloatToString process written in Helpfunctions.asm ,at least for win xp. I will look into that later.
Quote from: minor28 on April 20, 2014, 08:07:36 PM
I attach a new Solar.inc with full path to includes.
Thanks. The problem is with several "non-benign" redefinitions of structures. You include Windows.inc but redefine certain structures elsewhere, e.g.
MONITORINFO
ImageCodecInfo
GdiPlusStruct.inc, line 25: incorrect initializers : EncoderParameter
EncoderParameter struct
pGUID GUID <> ; GUID of the parameter
NumberOfValues DWORD ? ; Number of the parameter values; usually 1
vType DWORD ? ; EncoderParameterValueType - Value type, like ValueTypeLONG etc.
value DWORD ? ; A pointer to the parameter values
EncoderParameter ends
EncoderParameters struct
Count DWORD ? ; Number of parameters in this structure; Should be 1
Parameter EncoderParameter <> ; Parameter values; this CAN be an array!!!! (Use CopyMemory and a string or byte array as workaround)
EncoderParameters endsIf it works for you, then the only explanation I see is that your \Masm32\include\Windows.inc is modified. AFAIK all assemblers of the Masm/Jwasm family choke on structure redefinitions, even if they appear identical. Check this:
include \masm32\include\masm32rt.inc
RECT STRUCT
left DWORD ? ; <<<< DANGEROUSLY MODIFIED!!!
top dd ?
right dd ?
bottom dd ?
RECT ENDS
.code
AppName db "Masm32:", 0
rc RECT <?>
start: MsgBox 0, "Hello World", addr AppName, MB_OK
exit
end startIt is therefore never a good idea to re-write structures that are already present in Windows.inc.
P.S.: Attention the snippet with the "dangerously modified" RECT
does assemble with JWasm (a more intelligent assembler than ML...)
Quote from: minor28 on April 20, 2014, 06:55:56 PM
Nothing in masm32 is modified.
Then how did you build your app? To pick just one example windows.inc defines ARGB as:
ARGB typedef DWORD
And in your project.inc:
ifndef ARGB
ARGB macro a:REQ,r:REQ,g:REQ,b:REQ ;;ARGB(a,r,g,b)
exitm %(((a and 0ffh) shl 24) or ((r and 0ffh) shl 16) or ((g and 0ffh) shl 8) or (b and 0ffh))
endm
endif
So ML returns:
DrawDiagram.asm(36) : error A2136: too many arguments to INVOKE
DrawDiagram.asm(36) : error A2207: missing right parenthesis in expression
DrawDiagram.asm(36) : error A2114: INVOKE argument type mismatch : argument : 1
As far as I know I have never modified windows.inc. I never re-write structures I only write the structure if it is not found. I don't have the ARGB typedef DWORD in my windows.inc. Windows.inc Version 1.4c RELEASE April 2008
RECT STRUCT is in windows.inc. I have not written that structure
QuoteI don't have the ARGB typedef DWORD in my windows.inc. Windows.inc Version 1.4c RELEASE April 2008
Ok, that explains at least some of the problems. The current windows.inc, and the version that I expect most of us are using, is Version 1.6 RELEASE January 2012.
Quote from: MichaelW on April 20, 2014, 09:40:37 PM
...
Ok, that explains at least some of the problems. The current windows.inc, and the version that I expect most of us are using, is Version 1.6 RELEASE January 2012.
That's right, I use the latest MASM32 pack with
QuoteWINDOWS.INC for 32 bit MASM (Version 1.6 RELEASE January 2012)
Ok. Now I have downloaded masm32 r11 and made som adjustments in my code. I can compile and the app works for me on win7 32.
New upload and I have also attached a makefile.bat
Great, now it assembles fine but shows a box "Requst failed", then chokes at GetLatLngStrings because ...
00409F96 ³> 803E 2C +cmp byte ptr [esi], 2C
... there is nowhere a 2C aka "comma" in the string. Just zeros, nothing else...
So why does invoke RunMethod,ppIXMLHTTPRequest,WSTR("send"),DISPATCH_METHOD,NULL,0 fail?
Quote
So why does invoke RunMethod,ppIXMLHTTPRequest,WSTR("send"),DISPATCH_METHOD,NULL,0 fail?
This call only send a request to retrieve time zone data such as daylight saving time and time offset. It has nothing to do with the GetLatLngStrings proc. I think mouse move is causing the error. I will try to see what's wrong.
Now it assembles fine here but the window doesn't appear on the desktop (only in the tray and ALT-TAB window)
BTW your app seems to remember last session . Where does it store its data ?
HKEY_CURRENT_USER\Software\MINOR28\Solar
comport, height, home position, current position, map type, width, winstyle, window position and zoom
I have modified the Helpfunction.asm file. Now it works on my win xp. Try it on win8 please. New upload.
Edit: I forgot the exe. New upload
Still the same - it sits in the tray and doesn't want to show up on the desktop
[EDIT]: ENLIGHTMENT!!!
I deleted MINOR28 key from the registry and your app started normally (one crash doesn't count though)
I terminated it and restarted again - no window . I deleted the key and it works again ( but chokes on resizing as I wrote earlier) .
[EDIT]: Now it started 5 times or so normally and crashed on zoom in :
Quote
Problem signature:
Problem Event Name: APPCRASH
Application Name: Solar.exe
Application Version: 0.0.0.0
Application Timestamp: 5353d811
Fault Module Name: Solar.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5353d811
Exception Code: c0000005
Exception Offset: 0000566c
but if I drag the map before zooming all works correctly
Street view works ok
Quote from: minor28 on April 21, 2014, 07:37:20 AM
I have modified the Helpfunction.asm file. Now it works on my win xp.
On my XP SP3 it chokes first with "Requst failed", then with a box saying script error in MSIE, line 21, char 4, 'google' undefined, URL about:blank. continue? (Y/N)
Both choices end up with an exception for movsb as described above.
The offending line:
google.maps.event.addDomListener(window, 'load', initMap);
Most probably, the google DOM object should have been created in
<script type="text/javascript" src="
http://maps.google.com/maps/api/src/markerwithlabel.js"></script>
but:
404. That's an error.
The requested URL /maps/api/src/markerwithlabel.js was not found on this server. That's all we know.
Since I don't have win8 it is difficult to find the error. The only thing I have found is I forgot to preserve edi in one process. You can try the new upload.
If you get the "Request failed" and the script error you may not be connected to internet?
It starts and runs (without registry key)
Left-border resizing still chokes it (but I don't think it's a code error)
I'm trying to resize the window because it doesn't fit my display . Both creating a fixed-sized or maximized window will let to avoid resizing.
It's getting more and more stable step by step :t
Later today I'll look into it from under debugger
Quote
The offending line:
google.maps.event.addDomListener(window, 'load', initMap);
Most probably, the google DOM object should have been created in
<script type="text/javascript" src="http://maps.google.com/maps/api/src/markerwithlabel.js"></script>
but:
404. That's an error.
The requested URL /maps/api/src/markerwithlabel.js was not found on this server. That's all we know.
If one try to run the html directly outside the app you get these errors.
Quote from: minor28 on April 21, 2014, 04:34:32 PM
Since I don't have win8 it is difficult to find the error. The only thing I have found is I forgot to preserve edi in one process. You can try the new upload.
Same as before, and on Win XP SP3.
QuoteIf you get the "Request failed" and the script error you may not be connected to internet?
Unless my system magically disconnects between two replies I am writing here, I would assume that yes, I am connected to the Internet, and that it's Google who responds with a 404 when I try to see the *.js ;-)
One remote possibility might be that the URL is not available in some countries; unlikely because would respond with a different error message. Still, what happens if you temporarily change line 8 from
http://maps.google.com/maps/api/src/markerwithlabel.js
to
http://maps.google.com/maps/api/src/nosuchsource.js ??
With "http://maps.google.com/maps/api/src/nosuchsource.js" it works like before.
I have run some more on my xp and it is not so good. Flickering and so on. I skip to try to get it to work on xp.
Edit:
The code is free to use by anyone on this forum. Naturally, I am interested in what happens with the app.
Quote from: minor28 on April 21, 2014, 05:39:21 PM
With "http://maps.google.com/maps/api/src/nosuchsource.js" it works like before.
Which indicates it doesn't anything useful...
With...
if 0
invoke GetLatLngStrings,addr latitude,addr longitude
.if moving
;a marker is moving
invoke wsprintf,addr buffer,ASTR("distMarkers[%d].setPosition(%s,%s);"),distMarkerIndex,addr latitude,addr longitude
invoke ExecuteScript,addr buffer,0
.endif
endif
... the app stops crashing, but script errors pop up regularly, and I don't see any useful output. The crash was in the Document_OnMouseMove handler.
If I am the only one experiencing these problems, then forget. It might be an old MSIE causing this.
Some new issues are found:
- ConnectGPS button area and 2 comboboxes seem to occupy the same place
- Distance measure throws an error MessageBox ; partly drawn (or periodically disappearing) lines
Quote
- ConnectGPS button area and 2 comboboxes seem to occupy the same place
All buttons are childs to a ReBar. I have set up a minimum width to avoid this. However if you maximize and then normal size the window width was to small. This is fixed now.
Quote
- Distance measure throws an error MessageBox ; partly drawn (or periodically disappearing) lines
I was computing numbers with thousand separators. Not good
New upload
If I maximize the window (and return to normal size after that) there are no more error MessageBoxes in Distance Measure mode
[EDIT]: They (Error MessageBoxes ) are still popping from time to time)
One more issue:
"Request failed" persists but no more crashes. Several boxes complaining that elements are undefined, and no maps :(
Quote
"Request failed" persists but no more crashes. Several boxes complaining that elements are undefined, and no maps
I cannot figure out what's wrong with the request and undefined elements. I have made some changes to request code but I don't think it will help you.
Quote
One more issue:
I forgot to take date line in consideration. Now it is done. At some locations, for example California, USA, accepts the request but no value is returned. Here I calculate the solar time.
Edit: I removed the attachment. Be back tomorrow
The changes that I made yesterday had certain consequences elsewhere. Therefore, I removed the attachment.
I opened Solar.asm in RichMasm, hit F6 and .. guess what: IT WORKS!
On a different machine with MSIE 11, though. It seems really a bit incompatible with older MSIE versions (EDIT: it stills fails on Win XP SP3 with MSIE 7.0).
Works perfect now on my win8.1 x64 system :t
Works well here (win8.1 Pro x64) but street view seems to be low-res, and slower than google.
Left is google, right is you. Maybe google adjust their view?
works much better (xp sp3) :t
Hi Sinsi,
Quote from: sinsi on April 22, 2014, 08:25:15 PM
Works well here (win8.1 Pro x64) but street view seems to be low-res, and slower than google.
Left is google, right is you. Maybe google adjust their view?
interesting images. Is it your home?
Gunther
Thank you all. It seems to work pretty will now. I attach the last version.
Quote
(EDIT: it stills fails on Win XP SP3 with MSIE 7.0).
OK, for the time being, I let it be as it is.
Quote
Works well here (win8.1 Pro x64) but street view seems to be low-res, and slower than google.
Left is google, right is you. Maybe google adjust their view?
I only open/close the default StreetViewPanorama.
Right clicking on a distance marker, on the map and on the map with connected GPS, will open menus.
You can log GPS senteces from a menu for example.
App data are stored in Registry under HKEY_CURRENT_USER\Software\MINOR28\Solar.
:t
the valuable work.
invoke SetWindowPos,hMainDlg,HWND_TOPMOST,NULL,NULL,NULL,NULL,SWP_NOSIZE