Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dlls and Reportpreviewer
Message
 
 
To
11/08/2008 07:48:14
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01337987
Message ID:
01337996
Views:
7
You're welcome.

>Thanks Sergey, that's sorted it.
>
>Jon
>
>>Hi Jon,
>>
>>You hit a VFP bug. When Windows API function is declared w/o alias VFP releases any previous declarations with an alias.
>>You can use a trick from GdiPlusX. Comment out DECLARE and create following function. If GS_SplitReleaseDC is not declared yet, the function will be called. Otherwise the function in DLL will be called.
>>
>>FUNCTION GS_SplitReleaseDC(hWnd, HDC)
>>DECLARE Long ReleaseDC IN WIN32API AS GS_SplitReleaseDC Long hWnd, Long HDC
>>RETURN GS_SplitReleaseDC(m.hWnd, m.HDC)
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform