Yes, I agreed. The DLL itself have to be compiled as regular DLL, no MFC classes can be exported using regular DLL. Instead of return CString, the function should return LPTSTR and make sure to use the __stdcall calling convention.
Thanks.HTH.
>If it uses CStrings, than it's C++...
>
>I don't believe that a function that returns a CString can be exported as C standard.
>
>Vlad
>
>>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.