Unclear COMException when using Addadvise

J

Johnny

Hi all,

I am playing around with the sample codes from the 2007 sample library. I am
building a form with a visio drawing control in it. I wanted to monitor an
event using AddAdvise and EventSink. I found a couple sample codes from the
library and used them with no modification. This is how I add the event in
the form:

public Form1()
{
InitializeComponent();

AddAdvise ad = new AddAdvise();

ad.DemoAddAdvise(axDrawingControl1.Window.Application);
}

This code compiles fine but generate a COMException error without much
detail when I execute this. Is this a bug or have anyone tried this? Thanks
for the help in advance.

Johnny
 
S

Steve

Yes I am getting the same error and cant seem to get around it. If you find
any workarounds please share in this thread. I'll do the same.

All the best
 
S

snesbitt76

Hi,

I am getting the same error. Have you found a workaround? I'm trying
to get the OfficePlanSample working.

Any help would be greatfully appreciated.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top