C++
ACDBCORE2D_PORT AcadApp::ErrorStatus acrxRegisterApp( AcadApp::LoadReasons alr, const ACHAR * logicalName );
File
rxregsvc.h
Description
This function creates a temporary AcadAppInfo object on the stack, sets that AcadAppInfo object to use the logicalName and alr arguments, and then calls the AcadAppInfo object's writeToRegistry() function. This merely creates a key in the registry using the logical name and a LOADCTRLS value under that key. It does not create LOADER or DESCRIPTION values, nor does it create command or group entries. The LOADER value, which is required for demand loading, must be written by some other means.
When this function returns, the local AcadAppInfo object is destroyed.
Before using the AcadAppInfo::writeGroupNameToRegistry() or AcadAppInfo::writeCommandNameToRegistry() function, applications must call setAppName() and writeToRegistry() on their own AcadAppInfo object. Otherwise, writeGroupNameToRegistry() and writeCommandNameToRegistry() calls will fail.
Returns AcadApp::eOk if successful.
Returns AcadApp::eRejected if the write could not be completed.
Parameters
Parameters | Description |
---|---|
alr | Input load reason (or multiple, logically OR'd load reasons) that should apply to the application; if multiple load reasons are logically ORd, the result must be cast to the type AcadApp::LoadReasons |
logicalName | Input logical name for ObjectARX or ObjectDBX program to load |
Previous Declaration
ACDB_PORT AcadApp::ErrorStatus acrxRegisterApp(
AcadApp::LoadReasons alr,
const ACHAR * bDwgU
);