I have a DLL, and I would like to use some of its functions.
#include <iostream>
using namespace std;
extern "C" __declspec(dllimport) int Initialize(char* localPort, char* adminServerName, int rpcTimeout);
int main()
{
int res = Initialize("7864", "6000@kabc", 10000);
return 0;
}
I don't have a .lib dll, so I can still link it. One thing that comes to my mind is to use the LoadLibrary function and then use GetProcAddress (). Is there another way?
When I compile the following code
I get the above errors
I am using Windows and Visual Studio 2008
source
share