BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

DLL-Entrypoint-ArchiCAD10 in a MFC-Application

Anonymous
Not applicable
I have the following problem:
In the version 8 and 9 of ArchiCAD I have the api entry point of our mfc-application as follows:
BOOL APIENTRY DllMainAttach (HANDLE hModule) ;
BOOL APIENTRY DllMainDetach (void) ;
BOOL CMFCApp::InitInstance()
{
DllMainAttach (m_hInstance);
return CWinApp::InitInstance();
}
int CMFCApp::ExitInstance()
{
DllMainDetach ();
return CWinApp::ExitInstance();
}
which are defined in the files ACAPlib_dll.cpp as follows:

BOOL APIENTRY DllMainAttach (HANDLE hModule)
{
gOwnModule = hModule;
gOwnResModule = (GSResModule) gOwnModule;
return TRUE;
}

BOOL APIENTRY DllMainDetach (void)
{
if (gOwnResModule != NULL && gFunctionTable != NULL && gFunctionTable->closeownresfile != NULL) {
gFunctionTable->closeownresfile (gOwnResModule);
}
gOwnResModule = NULL;
gOwnModule = NULL;
gOwnClientID = NULL;
if (gFunctionTable != NULL) {
delete gFunctionTable;
gFunctionTable = NULL;
}
return TRUE;
}

This entry point does not exist any more in API Development Kit 10.20. There is no explanation about it. How can i overcome this problem?
Thanks in advance,
Celepoglu
0 REPLIES 0
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!