Have you tried this?
>declare integer GetDC in Win32API integer hwnd
DECLARE fg_setdc IN "fgw32.dll" LONG
>hWnd = THISFORM.HWnd
>hDC = GetDC(hWnd)
>fg_setdc(hDC)
Wan
>I am trying to use the FastGraph for Windows graphics library with VFP8. The FGW32.DLL sits in c:\windows\system32. In their sample code, this is the function declaration in VB:
>
>Declare Sub fg_setdc Lib "fgw32" Alias "_fg_setdc@4" _
> (ByVal Arg1 As Long)
>
>In VFP, this is what I try:
>
>***
>declare integer GetDC in Win32API integer hwnd
>DECLARE "_fg_setdc@4" IN fgw32 as fg_setdc long
>
>hWnd = THISFORM.HWnd
>hDC = GetDC(hWnd)
>fg_setdc(hDC)
>etc...
>***
>
>At the fg_setdc line I get error "Cannot load 32-bit DLL c:\windows\system32\fgw32.dll". I examined FGW32.DLL with a hex editor and it appears that the goofy "@4" function name is correct.
>
>Any ideas on why VFP can't seem to find this function in the DLL?
>
>Thanks,
>Paul