DLL call - Think I'm close
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:
Finally, I declare the variables in my my main function and try
__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);
to call the dll. I'm passing the dll the first two arguments:
When I try to compile, I get the following error:
Ret1 = GetSrcBIOWIN("O=C","ChemName",
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.