Message 1 of 2
ObjectARX: Unable to load my COM created menu.

Not applicable
02-22-2001
06:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there!
I create a menu trough COM when my application is loaded. In the
acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt) function in the
AcRx::kInitAppMsg: case, but AutoCAD does not let me
if
(SUCCEEDED(pAcadDisp->QueryInterface(IID_IAcadApplication,(void**)&pAcad)))
to get the IAcadApplication pointer so I can't load my menu when the
registry contains all the setting (LOADCTRLS:REG_DWORD:0x2) to automatically
load my application on AutoCAD startup. I commanted out my menu function
and it loads correctly. I tried to load the sample polysamp application
provited with the ObjectARX CD in the same way but it does the same thing.
Is their another way to go arround this problem. I still want to use the
COM interface.
I create a menu trough COM when my application is loaded. In the
acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt) function in the
AcRx::kInitAppMsg: case, but AutoCAD does not let me
if
(SUCCEEDED(pAcadDisp->QueryInterface(IID_IAcadApplication,(void**)&pAcad)))
to get the IAcadApplication pointer so I can't load my menu when the
registry contains all the setting (LOADCTRLS:REG_DWORD:0x2) to automatically
load my application on AutoCAD startup. I commanted out my menu function
and it loads correctly. I tried to load the sample polysamp application
provited with the ObjectARX CD in the same way but it does the same thing.
Is their another way to go arround this problem. I still want to use the
COM interface.