I have a source file file.cpp and within it I need to access a DLL file.dll
. Also I need access to the function DoFunction
within file.dll
and I need to pass it some variables from the file.cpp
.
I have:
m_hinstPtiDLL = LoadLibrary("file.dll");
pGNSI = (PGNSI) GetProcAddress(m_hinstPtiDLL, "DoFunction");
I want to be able to pass DoFunction
7 variables and have it return the necessary value.
Thanks in advance