Inserting a 32bit control in 16bit App. - TechRepublic
General discussion
January 10, 2001 at 10:00 PM
lenink

Inserting a 32bit control in 16bit App.

by lenink . Updated 22 years, 5 months ago

Have any one tried to load a 32 bit Activex control inside a 16 bit application.I have a 16bit application,i need to insert an activex control in that 16bit App window.I belive, some one would have worked on this
earlier.

When i tried doing this, I couldn’t insert a 32 bit control directly in the 16bit Application.So i wrapped my control into a 32bit DLL and thunked the DLL method from the 16bit App to create the control.

The creation of Control fails while calling CoGetClassObject. I checked out the HRESULT value returned by the CoGetClassObject, it says that “An implementation of the requested class could not be located”.

But,a Win32Application is succesful in calling the CoGetClassObject. I could create the instance and also getting the IDispatch interface pointer.

I can also assure that,it’s possible to insert a sample window in the 16bit Application via thunking.

Now the Action is Like this:

16bitApp ——> CreateControl() in 32bit DLL
CreateControl() in 32bit DLL —–> CoGetClassObject()

Can any one help me,to create the Control.

Your sugession or any new approaches are welcome.
Thank you.

This discussion is locked

All Comments