>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.