Message 1 of 10
using COM during initilization

Not applicable
04-06-2005
08:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
During the startup of a drawing, I am trying to load a menu via the COM
interface (a modified version of the SDK example). I am doing this during the
AcRx::kLoadDwgMsg. The menu fails to load at this line:
if(::GetActiveObject(clsid, NULL, &pUnk) != S_OK),
something about "no document"
which sounds strange as there IS a document, and I am able to extract block
attributes from it during the same AcRx::kLoadDwgMsg.
After my init code has ran and Acad is in a "quiet" state, I can then enter my
load menu command at the promp and the code runs fine and loads the menu.
Is COM not fully initilized during this time?
How can I get this menu to load at startup?
Thanks for any "pointers"
Perry