InfopathEditor Object and C++ in a MFC .Net app

P

pk_toor

In my application I have created a CDialog which has a InfoPathEditorObject
ActiveX control. I want to dispay forms in my MFC application.

I have generated the Wrapper classes for the ActiveX control and added it as
a member varible to my dialog class, but when I come to open the dialog I get
an error and if i ignore this error and continue to open a from I get a
library not registered error.

This is the error when opening the dialog:

occsite.cpp line 853. The

ASSERT(!IsEqualIID(*piid, GUID_NULL)); has failed.

However in the .rc file I have a valid GUID???????

CONTROL
"",IDC_EDITOR1,"{80756399-5146-11D5-A672-00B0D022E945}",WS_TABSTOP,7,98,351,165

I really dont know where to go from here. Have I got the whole approach wrong?
 

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