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

I have been given a C++ DLL to interface with and I am totally lost. The DLL is a MFC extension DLL using MFC as shared. The documentation first says that I need to do some setup as follows:
In stdafx.h, place the following two lines of code:
#include “mk4.h”
#include “mk4str.h”
These go right before the line:
#endif // _AFX_NO_AFXCMN_SUPPORT
Additionally, the header file for the Sample Select DLL needs to be included in
stdafx.h as follows:
#include “SampleSelect.h”
These header files can also be placed in the project directory.
Under Projects—Settings—Link, include the DLL library under “Objects/Library Modules” as SampleSelectDLL.lib.

This setup has something to do with a third-party program called MetaKit Version 2.4.0. I have VS .net C++ so I have no idea what or if I can make this work.

Last, here is the directions on calling the DLL:

To create an object of the DLL class, use the following line of code:
class __declspec(dllimport) CSampleSelect oSampleSelect;

Not sure how to do this?

Thanks for the help
Next
Reply
Map
View

Click here to load this message in the networking platform