Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDeviceCaps?!?!
Message
From
21/08/2000 14:52:47
 
 
To
21/08/2000 12:52:04
Ronald Suen
Epic Solutions Inc.
Edmonton, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00407348
Message ID:
00407465
Views:
23
>I've looked at the doc on the DECLARE - DLL command, and I know that the WIN32API declaration DOES look at GDI32.DLL, but the MSDN says that the GetDeviceCaps() function is in GDI32.LIB...is there a difference between these two files? I am unable to locate the LIB in my system which is the reason why I'm asking if it is a file that is typically installed in a Win environment.
>
>As for my declaration, other than the case of the text, it is exactly the same. I've tried mimicking the declaration and calling in the command window and I get the same results. I've also tried changing my declaration of a LONG INTEGER to an INTEGER but that does not seem fix this problem.
>

A .LIB is a static library which is used by systems that don't rely on DLLs to resolve library references; you must use DLL references in VFP, since it doesn't provide the option of static linking, or direct embedding of object code in the compiled application.

GDI32.DLL is a standard part of Windows.

You must match the case of the DLL declaration exactly; GetDeviceCaps is not GETDEVICECAPS is not getdevicecaps is not GeTdEvIcEcApS, and what you want is GetDeviceCaps - I don't care if your beautifier isn't happy with it, or it offends your sense of aesthetics, it must match the case -exactly-, with not one variant from the name assigned. Once it's declared, VFP couldn't care less, another problem entirely, since declaring getdevicecaps resets the assignment of GetDeviceCaps if you don't use an AS clause.

RTFM; case-sensitive means CASE-SENSITIVE

>Help!
>
>Thanks in advance.
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
Reply
Map
View

Click here to load this message in the networking platform