The program code:
#include "stdafx.h"
#include "MemLoadLibrary.h"
#include <iostream>
using namespace std;
typedef void(_cdecl* func)();
int main(int argc, _TCHAR* argv[])
{
CLoad lib;
HANDLE hLibrary = lib.LoadFromFile("vana.dll");
func fn = (func)lib.GetProcAddressFromMemory(hLibrary, "TestFunc");
fn();
lib.FreeLibraryFromMemory(hLibrary);
return 0;
}
The error is as follows
Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "public: void * __thiscall CLoad :: LoadFromFile (char const *) "(? LoadFromFile @ CLoad @@ QAEPAXPBD @ Z) referenced in function _main
My question is because of this error or any suggestion to solve it?