I've tried to build recent WVG demos using MSVC 2005, and after adding the
latest SDK (6.0a) to the paths (this is a new requirement,
and is caused by to new API calls used) the two demos have built
successfully, but both GPFs in win_AppendMenu:
---
Application Internal Error -
C:\work\harbour-new\harbour\contrib\gtwvg\tests\demowvg.exe
Terminated at: 2009.01.31 20:35:03
Unrecoverable error 6005: Exception error:
Exception Code:C0000005
Exception Address:0040C632
EAX:004F784F EBX:00530000 ECX:00000000 EDX:00000053
ESI:00000011 EDI:004F784F EBP:00000089
CS:EIP:001B:0040C632 SS:ESP:0023:0012FE2C
DS:0023 ES:0023 FS:003B GS:0000
Flags:00010293
CS:EIP: 88 14 39 83 C1 01 83 C0 01 3B CE 7C E2 57 6A 03
SS:ESP: 00000000 00530DD0 00422DE5 004F77D8 0000001B 00000000 00000000
00000000 00000000 00428D8C 00000004 00000000 00530090 0012FE80 00530000
00000000
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
Modules:
0x00400000 0x00149000 C:\work\harbour-new\harbour\contrib\gtwvg0x7C900000
0x000AF000 C:\windows\system32\ntdll.dll
0x7C800000 0x000F6000 C:\windows\system32\kernel32.dll
0x763B0000 0x00049000 C:\windows\system32\COMDLG32.dll
0x77DD0000 0x0009B000 C:\windows\system32\ADVAPI32.dll
0x77E70000 0x00092000 C:\windows\system32\RPCRT4.dll
0x77FE0000 0x00011000 C:\windows\system32\Secur32.dll
0x5D090000 0x0009A000 C:\windows\system32\COMCTL32.dll
0x77F10000 0x00049000 C:\windows\system32\GDI32.dll
0x7E410000 0x00091000 C:\windows\system32\USER32.dll
0x7C9C0000 0x00817000 C:\windows\system32\SHELL32.dll
0x77C10000 0x00058000 C:\windows\system32\msvcrt.dll
0x77F60000 0x00076000 C:\windows\system32\SHLWAPI.dll
0x774E0000 0x0013D000 C:\windows\system32\ole32.dll
0x77120000 0x0008B000 C:\windows\system32\OLEAUT32.dll
0x76390000 0x0001D000 C:\windows\system32\IMM32.DLL
0x10000000 0x00005000 C:\windows\system32\avgrsstx.dll
0x773D0000 0x00103000 C:\windows\WinSxS\x86_Microsoft.Windows.C0x76380000
0x00005000 C:\windows\system32\msimg32.dll
0x74720000 0x0004C000 C:\windows\system32\MSCTF.dll
0x10100000 0x0000E000 C:\Program Files\Logitech\SetPoint\lgscro0x78130000
0x0009B000 C:\windows\WinSxS\x86_Microsoft.VC80.CRT_0x77690000 0x00021000
C:\windows\system32\NTMARTA.DLL
0x71BF0000 0x00013000 C:\windows\system32\SAMLIB.dll
0x76F60000 0x0002C000 C:\windows\system32\WLDAP32.dll
Called from WVT_APPENDMENU(0)
Called from POPUPS(1310) in demowvg.prg
Called from MAIN(163) in demowvg.prg
------------------------------------------------------------------------
Application Internal Error -
C:\work\harbour-new\harbour\contrib\gtwvg\tests\demoxbp.exe
Terminated at: 2009.01.31 20:35:27
Unrecoverable error 6005: Exception error:
Exception Code:C0000005
Exception Address:0040BE42
EAX:0048BA92 EBX:004AD4B8 ECX:00000000 EDX:00000050
ESI:0000000E EDI:0048BA92 EBP:0000010F
CS:EIP:001B:0040BE42 SS:ESP:0023:0012FDE0
DS:0023 ES:0023 FS:003B GS:0000
Flags:00010297
CS:EIP: 88 14 39 83 C1 01 83 C0 01 3B CE 7C E2 57 6A 03
SS:ESP: 00000000 004AD8F8 00416415 00490370 00000022 00000000 00000000
00000000 00000000 0041B29C 00000004 00000000 004AC0F0 00000065 004AC000
00000000
C stack:
EIP: EBP: Frame: OldEBP, RetAddr, Params...
Modules:
0x00400000 0x000BC000 C:\work\harbour-new\harbour\contrib\gtwvg0x7C900000
0x000AF000 C:\windows\system32\ntdll.dll
0x7C800000 0x000F6000 C:\windows\system32\kernel32.dll
0x763B0000 0x00049000 C:\windows\system32\COMDLG32.dll
0x77DD0000 0x0009B000 C:\windows\system32\ADVAPI32.dll
0x77E70000 0x00092000 C:\windows\system32\RPCRT4.dll
0x77FE0000 0x00011000 C:\windows\system32\Secur32.dll
0x5D090000 0x0009A000 C:\windows\system32\COMCTL32.dll
0x77F10000 0x00049000 C:\windows\system32\GDI32.dll
0x7E410000 0x00091000 C:\windows\system32\USER32.dll
0x7C9C0000 0x00817000 C:\windows\system32\SHELL32.dll
0x77C10000 0x00058000 C:\windows\system32\msvcrt.dll
0x77F60000 0x00076000 C:\windows\system32\SHLWAPI.dll
0x774E0000 0x0013D000 C:\windows\system32\ole32.dll
0x77120000 0x0008B000 C:\windows\system32\OLEAUT32.dll
0x76390000 0x0001D000 C:\windows\system32\IMM32.DLL
0x10000000 0x00005000 C:\windows\system32\avgrsstx.dll
0x773D0000 0x00103000 C:\windows\WinSxS\x86_Microsoft.Windows.C0x74720000
0x0004C000 C:\windows\system32\MSCTF.dll
0x10100000 0x0000E000 C:\Program Files\Logitech\SetPoint\lgscro0x78130000
0x0009B000 C:\windows\WinSxS\x86_Microsoft.VC80.CRT_0x77690000 0x00021000
C:\windows\system32\NTMARTA.DLL
0x71BF0000 0x00013000 C:\windows\system32\SAMLIB.dll
0x76F60000 0x0002C000 C:\windows\system32\WLDAP32.dll
0x755C0000 0x0002E000 C:\windows\system32\msctfime.ime
Called from WIN_APPENDMENU(0)
Called from WVGMENU:ADDITEM(0) in .\wvgmenub.prg
Called from ACTIVEXBUILDMENU(333) in demoxbp.prg
Called from MAIN(55) in demoxbp.prg
------------------------------------------------------------------------
Here are the compilation warnings (some of these signal 64-bit
compatibility, security problems and some potential bugs, plus
probably the usual OLE problem, already fixed in several places
in other contribs):
---
gtwvg.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\olectl.h(205) :
warning C4201: nonstandard extension used : nameless struct/union
.\gtwvg.c(919) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(920) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(942) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(943) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(2132) : warning C4244: '=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(2133) : warning C4244: '=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(2162) : warning C4244: '=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(2163) : warning C4244: '=' : conversion from 'int' to 'USHORT',
possible loss of data
.\gtwvg.c(3224) : warning C4244: 'function' : conversion from 'int' to
'BYTE', possible loss of data
.\gtwvg.c(3247) : warning C4244: '=' : conversion from 'HB_LONG' to 'DWORD',
possible loss of data
.\gtwvg.c(3252) : warning C4244: '=' : conversion from 'HB_LONG' to 'DWORD',
possible loss of data
.\gtwvg.c(3257) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
.\gtwvg.c(3262) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
.\gtwvg.c(3267) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
.\gtwvg.c(3272) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
wvgcore.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\olectl.h(205) :
warning C4201: nonstandard extension used : nameless struct/union
wvgutils.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\olectl.h(205) :
warning C4201: nonstandard extension used : nameless struct/union
.\wvgutils.c(694) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\wvgutils.c(695) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
wvgsink.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\olectl.h(205) :
warning C4201: nonstandard extension used : nameless struct/union
.\wvgsink.c(488) : warning C4244: 'function' : conversion from 'int' to
'USHORT', possible loss of data
.\wvgsink.c(647) : warning C4305: 'type cast' : truncation from 'HB_LONG' to
'MyRealIEventHandler *'
.\wvgsink.c(677) : warning C4305: 'type cast' : truncation from 'HB_LONG' to
'IDispatch *'
wvgwin.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\olectl.h(205) :
warning C4201: nonstandard extension used : nameless struct/union
.\wvgwin.c(749) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\wvgwin.c(750) : warning C4244: '+=' : conversion from 'int' to 'USHORT',
possible loss of data
.\wvgwin.c(882) : warning C4244: 'function' : conversion from 'HB_LONG' to
'DWORD', possible loss of data
.\wvgwin.c(885) : warning C4244: 'function' : conversion from 'HB_LONG' to
'DWORD', possible loss of data
.\wvgwin.c(905) : warning C4244: 'function' : conversion from 'HB_LONG' to
'DWORD', possible loss of data
.\wvgwin.c(909) : warning C4244: 'function' : conversion from 'HB_LONG' to
'UINT_PTR', possible loss of data
.\wvgwin.c(1174) : warning C4996: 'sprintf': This function or variable may
be unsafe. Consider using sprintf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) :
see declaration of 'sprintf'
.\wvgwin.c(1316) : warning C4244: '=' : conversion from 'LONG' to 'USHORT',
possible loss of data
.\wvgwin.c(1454) : warning C4244: 'function' : conversion from 'HB_LONG' to
'UINT', possible loss of data
.\wvgwin.c(1620) : warning C4047: '=' : 'UINT' differs in levels of
indirection from 'void *'
.\wvgwin.c(1808) : warning C4047: 'function' : 'int' differs in levels of
indirection from 'void *'
.\wvgwin.c(1808) : warning C4024: 'SetWindowPos' : different types for
formal and actual parameter 3
.\wvgwin.c(1808) : warning C4047: 'function' : 'int' differs in levels of
indirection from 'void *'
.\wvgwin.c(1808) : warning C4024: 'SetWindowPos' : different types for
formal and actual parameter 4
wvggui.c
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\olectl.h(205) :
warning C4201: nonstandard extension used : nameless struct/union
.\wvggui.c(980) : warning C4244: 'function' : conversion from 'HB_LONG' to
'long', possible loss of data
.\wvggui.c(987) : warning C4244: 'function' : conversion from 'HB_LONG' to
'long', possible loss of data
.\wvggui.c(2058) : warning C4244: 'function' : conversion from 'int' to
'BYTE', possible loss of data
.\wvggui.c(2080) : warning C4244: '=' : conversion from 'HB_LONG' to
'DWORD', possible loss of data
.\wvggui.c(2085) : warning C4244: '=' : conversion from 'HB_LONG' to
'DWORD', possible loss of data
.\wvggui.c(2090) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
.\wvggui.c(2095) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
.\wvggui.c(2100) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
.\wvggui.c(2105) : warning C4244: '=' : conversion from 'HB_LONG' to 'int',
possible loss of data
wincallb.c
.\wincallb.c(236) : warning C4244: 'function' : conversion from 'int' to
'USHORT', possible loss of data
.\wincallb.c(238) : warning C4244: 'function' : conversion from 'int' to
'USHORT', possible loss of data
.\wincallb.c(348) : warning C4152: nonstandard extension, function/data
pointer conversion in expression
.\wincallb.c(374) : warning C4244: '=' : conversion from 'int' to 'BYTE',
possible loss of data
.\wincallb.c(375) : warning C4244: '=' : conversion from 'int' to 'BYTE',
possible loss of data
.\wincallb.c(376) : warning C4244: '=' : conversion from 'int' to 'BYTE',
possible loss of data
.\wincallb.c(391) : warning C4152: nonstandard extension, function/data
pointer conversion in expression
.\wincallb.c(392) : warning C4244: '=' : conversion from 'int' to 'byte',
possible loss of data
.\wincallb.c(393) : warning C4244: '=' : conversion from 'int' to 'byte',
possible loss of data
Generating Code...
c:\work\harbour-new\harbour\contrib\gtwvg\wincallb.c(608) : warning C4701:
potentially uninitialized local variable 'j' used
c:\work\harbour-new\harbour\contrib\gtwvg\wvgsink.c(842) : warning C4701:
potentially uninitialized local variable 'hContainer' used
---
Brgds,
Viktor
On Sat, Jan 31, 2009 at 8:16 PM, Pritpal Bedi <[email protected]>wrote:
>
> GVS
>
>
> Guillermo Varona wrote:
> >
> > Hi
> > I'm trying to use this small PRG gtwvg:
> >
> > PROCEDURE Main()
> > Wvt_SetGui( .t. )
> > @ 10,10 SAY "Hola Mundo"
> > RETURN
> >
> >
>
> Try harbour/tests/wvtext.prg and compile it with -d__GTWVG__ and link with
> GTWVG.lib.
>
> It is a pure console application and works as is with GTWVG.
>
> Regards
> Pritpal Bedi
>
> --
> View this message in context:
> http://www.nabble.com/Making-a-Hello-World%21-with-gtwvg-contrib-tp21766212p21767188.html
> Sent from the Harbour - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour