{I+=codeWee;}
[C++] How to Load DLL file and Call a function of DLL in Run-time
//== Imported DLL : My.DLL ==
int MyFunc()
{
// Codes...
}


//== Importing EXE or DLL ==
typedef int (*MyFunc)();
MyFunc lpGetMyFunc;

HMODULE hModule;
hModule = LoadLibrary(L"my.dll");
lpGetMyFunc = (GetImpoterFunc)GetProcAddress(hModule , "MyFunc");
int n= lpGetMyFunc();
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.