VC直接调用MicroDrawOcx控件-即控件不用安装注册直接调用
![]() ![]()
hInstance = ::LoadLibrary("xxxxx/xxx/microdrawocx.ocx");
int x = GetLastError(); if((x == 126) || (x==127)) AfxMessageBox("加载MicroDraw控件失败"); if(hInstance) { FARPROC lpDllEntryPoint = GetProcAddress(hInstance, lpszFRegister); if (lpDllEntryPoint != NULL) { (*lpDllEntryPoint)(); return TRUE; } else { FreeLibrary(hInstance); hInstance = NULL; } break; } |