2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2015-01-27
06:19 PM
- last edited on
2023-08-01
01:51 PM
by
Doreena Deng
::FreeLibrary(dynamicLib);It seems AC can't delete instance of the dll.
IBCObject * webAPICommand = NULL; typedef void(*createCommand)(IBCObject**, const char *); LPCSTR dllName = "MyDll.dll"; HINSTANCE dynamicLib = LoadLibrary(dllName); if (dynamicLib) { createCommand newCommand; newCommand = (createCommand)::GetProcAddress(dynamicLib, "getCommand"); newCommand(&webAPICommand, "issues"); } webAPICommand->run("", "", issues); ::FreeLibrary(dynamicLib);