Referencing ActiveX Controls

  • Thread starter Thread starter John Sheppard
  • Start date Start date
J

John Sheppard

Hello,

I am trying to embed some activeX controls into my project.

I have a sample application where it all works.
When i try and get it to work in my main application it gives me an error
(Catastrophic Failure (exception from HRESULT: 0x000FFF (E_UNEXPECTED)

In the references of the working sample it says
AxDSOFramer
DSOFramer

In the references of the main application which doesnt work it says
axInterop.AxDSOFramer
interop.DSOFramer

The properties of the references are also different, but I cannot change
them?
In the working sample it says
FileType: ActiveX

In the main application which doesnt work it says
FileType: Assembly

Does anyone know how I can import references so that they are the same...I
dont understand whats going on...they are the exact same DLL's...

Thank you so much for anyone that can help
John Sheppard
 
John Sheppard said:
Hello,

I am trying to embed some activeX controls into my project.

I have a sample application where it all works.
When i try and get it to work in my main application it gives me an error
(Catastrophic Failure (exception from HRESULT: 0x000FFF (E_UNEXPECTED)

In the references of the working sample it says
AxDSOFramer
DSOFramer

In the references of the main application which doesnt work it says
axInterop.AxDSOFramer
interop.DSOFramer

The properties of the references are also different, but I cannot change
them?
In the working sample it says
FileType: ActiveX

In the main application which doesnt work it says
FileType: Assembly

Does anyone know how I can import references so that they are the same...I
dont understand whats going on...they are the exact same DLL's...

Thank you so much for anyone that can help
John Sheppard

Hmm, I've made some progress...If I add the DSOFramer from the COM menu,
that ads the DSOFramer, but it wont add the AxDSOFramer...do I have to
register them?

I tried registering the AxDSOFramer.dll but regsvr did not like it "The
module ... was loaded but the entry-point DLLregisterServer was not
found...make sure that .... is a valid dll or ocx file and then try again"

It is a valid dll, cause it works in the sample application :(

Thank you
John sheppard
 
John Sheppard said:
Hmm, I've made some progress...If I add the DSOFramer from the COM menu,
that ads the DSOFramer, but it wont add the AxDSOFramer...do I have to
register them?

I tried registering the AxDSOFramer.dll but regsvr did not like it "The
module ... was loaded but the entry-point DLLregisterServer was not
found...make sure that .... is a valid dll or ocx file and then try again"

It is a valid dll, cause it works in the sample application :(

Thank you
John sheppard

hmm, I found out a dodgy way of doing it....

I just edited the working sample's project file, cut and pasted the
references from there into my main app, and away we go!

Wouldnt mind knowing how to do it properly tho :)

Thanks for reading
John Sheppard
 
Back
Top