S
Scott Metzger
Hi,
I am keeping a reference to the Document when I create my Drawing control...
MyDocument = new CVDocument(MyDrawing->get_Document());
In an OnCellChanged event handler I then try to use this reference and I
get exception (dialog just says "An Exception has occured.")
CString docName = MyDocument->get_Name(); // exception here
The address for MyDocument has not changed. If I do the following in
the OnCellCHanged event everything works fine...
CVDocument* drawDoc = new CVDocument(MyDrawing->get_Document());
CString docName = drawDoc->get_Name();
Why doesn't this work? Is it safe to keep a reference to Visio Objects?
I am using Visio 2003 in a MFC C++ application. I have used the class
wizard to import the type library.
Thank You,
Scott Metzger
I am keeping a reference to the Document when I create my Drawing control...
MyDocument = new CVDocument(MyDrawing->get_Document());
In an OnCellChanged event handler I then try to use this reference and I
get exception (dialog just says "An Exception has occured.")
CString docName = MyDocument->get_Name(); // exception here
The address for MyDocument has not changed. If I do the following in
the OnCellCHanged event everything works fine...
CVDocument* drawDoc = new CVDocument(MyDrawing->get_Document());
CString docName = drawDoc->get_Name();
Why doesn't this work? Is it safe to keep a reference to Visio Objects?
I am using Visio 2003 in a MFC C++ application. I have used the class
wizard to import the type library.
Thank You,
Scott Metzger