Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ DLL help
Message
From
20/08/2008 10:57:45
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:
01340379
Views:
11
Thanks Christof. Gives me a good starting point.

>Hi James,
>
>It would be easier if you somehow could get a procedural DLL instead...
>
>OK, first of all you need to create a new FLL project in C++ (see http://blog.donnael.com/2008/04/creating-an-fll/ for instructions). It might be easiest to complete this sample FLL in order to see if you can compile it flawlessly.
>
>The files you got should contain several .H files and at least one .LIB file. Copy all these files into the project directory of your FLL.
>
>The FLL project should have one .H file when you created it. Open this header file and add the #include statements you got from the C++ DLL vendor.
>
>When you created the FLL, there was one step to add WINAPIMS.LIB to the project. Follow the same step to add SampleSelectDLL.lib to the project. The names are separated by a blank.
>
>Create a new function like this:
>
>class __declspec(dllimport) CSampleSelect oSampleSelect;
>
>void CallWhatever(ParamBlk  *parm)
>{
>  oSampleSelect.AMethod();
>}
>
>
>The name of the method depends on what the class is offering. If everything worked OK, you should get IntelliSense showing you available methods. Now compile the project. If you got an error message, we need to fix this, otherwise the next step will be to add functions to the FLL that call the methods of the object. In VFP you would use SET LIBRARY TO to call these functions.
Previous
Reply
Map
View

Click here to load this message in the networking platform