Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing CStrings in DLLs from VP5
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00090588
Message ID:
00090636
Views:
21
David,

The VFP DECLARE is case sensitive so you have to use the same case as the C code to declare it, once declared you can use any case to call the routine. Try rightclicking the DLL and run QuickView it should show you the case of the exported functions, otherwise browse the dll in a hex file viewer.

If it's a C++ dll that you've created you need to make sure you've included the function in the EXPORTS section of the .DEF file.

I think if it returns CString you can declare that as STRING in VFP.

>I am using VFP5 and I need to use a DLL with most of their returns as CStrings from MFC.The return from the method in the DLL is a CString. Does anyone knows which is the proper way to reference them in the DECLARE?
>I keep getting the error that the DLL can not find the point of entry for the method.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform