2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2014-12-11
06:17 PM
- last edited on
2023-08-01
01:57 PM
by
Doreena Deng
2014-12-12 08:52 AM
The API documentation is out-of-date and still shows the old 3-argument version.
Resource chain is gone (also ACAPI_UseOwnResModule() and ACAPI_ResetResModule() along with it)
OS X internally maintained a stack of open resource files called the resource chain. Whenever you want to load a resource, the system searched downwards in this stack to find the resource in any of the open resource files below the current one. We removed that implicit mechanism; you'll have to specify each and every time the resource module explicitly (usually with ACAPI_GetOwnResModule()).
DG_DLL_EXPORT short CCALL DGModalDialog (GSResModule dialResModule, short resId, GSResModule dialIconResModule, const DGDialCallBack dCallBack, DGUserData userData); // Example: DGModalDialog (ACAPI_GetOwnResModule (), MyDialogResId, ACAPI_GetOwnResModule (), MyDialog_Handler, NULL);