Project Setup

To start a Property Inspector application, you must create a new MFC DLL or ATL project. If you do not create an ATL project, you can still include basic ATL headers. You can define the project either as a Regular DLL or as an Extension DLL.

Next, add basic setup for ObjectARX MFC-based applications as described elsewhere in the ObjectARX Developer's Guide. For instance, implement the DllMain() as described in CAcModuleResourceOverride Class. In the application module, add an acrxEntryPoint() function and register at least one command.

If you did not define an ATL project, near the top of your application module you must declare a singleton CComModule variable in file scope. This declaration should appear immediately after your #include statements and must look exactly as shown below:

CComModule _Module;

This variable behaves similarly to the CWinApp object in Windows applications. It identifies your module to the ATL subsystem and permits ATL to initialize itself with your application object.

Note:

The ObjectARX Wizards can automate your project setup and also provide boilerplate implementations of many of the Property Inspector interfaces. If you are a member of the Autodesk Developer Network (ADN), consult DevHelp Online for additional documentation and information.