Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a dll 1

Status
Not open for further replies.

jamez05

Programmer
Joined
Jul 29, 2005
Messages
130
Location
US
I have a program written in C++ 4.0 that needs to call a dll.

Here's the beginning of the instructions I have for the dll:
Code:
The KOWDLL.DLL was compiled with Microsoft Visual C++ 6.0 ...
it uses standard "C" language programming (not C++) ... it
contains one accessible function as follows:


__declspec ( dllexport )int WINAPI GetSrcKow32 (PSTR cSmilePass,
       PSTR cChemical, float *EstValue, float *ExpKowVal,
       PSTR DetailResults, int *numLines, PSTR ErrorMess)
{
 /*  cSmilePass  -  SMILES string being passed to the function ... [360] max */

I haven't done this before (still very new to C programming). If anyone knows of any good tutorials or has some advice, it would be much appreciated.

James
 
Add extern "C" to exported function prototypes if you want to use the dll in C (VB etc).
Use Depends VS tool to see what's a name was exported.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top