嵌入式技术
HINSTANCE hInstLibrary;//模块句柄定义 DWORD (WINAPI *InstallStatusMIF)(char*, char*, char*, char*, char*, char*, char*, BOOL);//函数指针定义 if (hInstLibrary = LoadLibrary("ismif32.dll"))//映射 { InstallStatusMIF = (DWORD (WINAPI *)(char*,char*,char*, char*, char*, char*, char*, BOOL)) GetProcAddress(hInstLibrary, "InstallStatusMIF");//获得函数指针 if (InstallStatusMIF) { if (InstallStatusMIF(“office97”, “Microsoft”, “Office 97”, “999.999”, “ENU”, “1234”, ”Completed successfully”, TRUE) !=0)//调用DLL模块中的函数 { } } FreeLibrary(hInstLibrary);//拆除映射 }
审核编辑:汤梓红
全部0条评论
快来发表一下你的评论吧 !