#include #include typedef int(_stdcall* MyProc)(); HINSTANCE dllHandle = NULL; int main() { dllHandle = LoadLibrary(TEXT("AssemblerDll.dll")); if (!dllHandle) { std::cerr << "Failed to load DLL library\n"; return 1; } MyProc myAsmProcedure = (MyProc)GetProcAddress(dllHandle, "MyAsmProc"); if (!myAsmProcedure) { std::cerr << "Failed to find assembler procedure\n"; FreeLibrary(dllHandle); return 2; } std::cout << myAsmProcedure(); FreeLibrary(dllHandle); return 0; }