Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy API Question?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00258567
Message ID:
00258859
Views:
16
>>>I'm fumbling through some API calls, and I'm now stuck on this:
>>>
>>>declare integer GetDeskTopWindow in user32.dll
>>>
>>>which appears okay, but when I do:
>>>
>>>hWnd = GetDeskTopWindow()
>>>
>>>it errors with "cannot find entry point"
>>>
>>>What am I doing wrong here?
>>Bruce,
>>Hope this one is the case :) DLL functions are (very) case sensitive. Might it be in fact GetDesktopWindow ?
>
>You are right about the 'T' not being a cap, but it still has same message...

IF the DECLARE...DLL is done with the proper case, it works:

DECLARE INTEGER GetDesktopWindow IN USER32.DLL
? gETdESKtOPWindow()

Except in the declaration, case doesn;t matter...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform