Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ DLL help
Message
 
To
20/08/2008 19:54:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01340071
Message ID:
01340686
Views:
10
Hi James,

>Warning 1 warning LNK4003: invalid library format; library ignored d:\projects\Pope\FSSample\FSSample\FSSample\SampleSelectDLL.dll 1

This sounds as if you had specified the DLL file instead of the LIB file in the Linker properties (where you also have WINAPIMS.LIB).

> CString s1( (char *) _HandToPtr(parm->p[0].val.ev_handle));

Sorry, forgot the cast operation.

>I can't get the third float parameter to work. Get an erorr that says can't convert float * to float.

How are you getting the third parameter? You don't have to pass the value as a string. Instead defines the parameter type in the Foxinfo structure as "CCN" instead of "CCC". Then use

parm->p[0].val.ev_real

as the value for the third parameter.

> I added #define _AFXDLL that fixed the compile error but maybe the dll does not like this?

If you can compile, you should try the FLL. This is getting into regions where my knowledge bases on having it done once or read about. <s> When writing C++ libraries I tried to avoid MFC where ever I could.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform