I'm trying to include a use DLL's methods using C++.
I've tried to include the DLL using this code:
HMODULE DLL = LoadLibrary(_T("name.dll"));
if (DLL)
{
std::cout << "DLL loaded!" << std::endl;
if (_pdisconnect)
{
std::cout << "Successful link to function in DLL!" << std::endl;
}
else
{
std::cout << "Unable to link to function in DLL!" << std::endl;
}
}
else
{
std::cout << "DLL failed to load!" << std::endl;
}
FreeLibrary(DLL);
That DLL that I'm trying to include has two classes PCls
and TPCls
. The PCls
has a method which I'm trying to include is getOP(LONG a)
. How to use that method, please?
Thanks a lot!