Using acutPrintf in a Regular MFC DLL

By Augusto Goncalves

If you are using an MFC Regular DLL, you have to manage module state switching when calling acutPrintf(). You need to do something like this:

void arx_func() {      // Put AFX_MANAGE_STATE in its own scope      {         AFX_MANAGE_STATE(AfxGetAppModuleState());         acutPrintf(L"nHi!");      } // End of scope           // More of your code    }

Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading