Hi,
I've been pounding my head on this for over a week. Any help would be greatly appreciated.
I need to call a dll named BIOWDLL.DLL from within my C++ program. I put the BIOWDLL.DLL in my system32 folder and
the BIOWDLL.lib file in my main project folder.
Next, I declare the function in my header named biowin.h:
Code:
__declspec ( dllexport )int WINAPI GetSrcBIOWIN (PSTR cSmilePass,
PSTR cChemical, PSTR EstLin, PSTR EstNon, PSTR EstUlt, PSTR EstPrim,
PSTR UltTime, PSTR PrimTime, PSTR EstMitiLin, PSTR EstMitiNon,
PSTR DetailResults, PSTR numLines, PSTR ErrorMess);
Finally, I declare the variables in my my main function and try
to call the dll. I'm passing the dll the first two arguments:
Code:
int Ret1;
Ret1 = GetSrcBIOWIN("O=C","ChemName",
EstLin,EstNon,EstUlt,EstPrim,
UltTime,PrimTime,EstMitiLin,EstMitiNon,
Details,numLines,ErrMess);
When I try to compile, I get the following error:
Code:
main.obj : error LNK2001: unresolved external symbol "int __stdcall GetSrcBIOWIN(char *,char *,char *,char *,char *,char *,char *,char *,char *,char *,char *,char *,char *)"(?GetSrcBIOWIN@@YGHPAD000000000000@Z)
I believe the problem has to do with the program finding the library/dll. I've tried researching this, but have had little luck.