|
-
September 30th, 2008, 08:14 AM
#1
Activex Support without MFC
Hi,
I'm trying to embed an activex object which in this case is the DxStudioPlayer provided by DxStudio http://www.dxstudio.com into a win32 application that is not MFC based it's a hand written win32 app. I've got next to no experience of this and have hit many dead ends whilst searching the web for information, I'm coming to the comclusion that no one has tried to do this. Is it possible to provide support in this way and if so where should I start? Is there any good resources you can suggest I read?
Thanks
Rob
-
September 30th, 2008, 08:40 AM
#2
Re: Activex Support without MFC
I have tried to do this too.
What I tried to do is add a dialog based resource, use the IDD_FORMVIEW template.
right click on the newly created template, add ActiveX control, select the one you need and it will be created into the dialog box.
now that you should have a dialog based resource with an embeded ActiveX control you need to put this into the main application window this is done with the CreateDialog() function, all that needs doing now is resizing the ActiveX control window and the dialog window so it fills the app window.
hope this helps as a starting point
-
September 30th, 2008, 08:50 AM
#3
Re: Activex Support without MFC
Thats interesting can I use the CreateWindowEx call instead becuase I want to embed it as a child of the main window?
Thanks
-
September 30th, 2008, 08:53 AM
#4
Re: Activex Support without MFC
as long as the dialog resource has the Child value set as the Style property the dialog resource will be embeded into the main window.
so CreateDialog will work fine
-
September 30th, 2008, 09:10 AM
#5
Re: Activex Support without MFC
Is there a reason why the add activex option is greyed out when I right click on the template?
-
September 30th, 2008, 09:19 AM
#6
Re: Activex Support without MFC
All I can recommend is saving all, closing Visual Studio, and reopening it to see if that works
-
September 30th, 2008, 09:31 AM
#7
Re: Activex Support without MFC
Out of interested did this approach work with the activex component you where using?
-
September 30th, 2008, 09:36 AM
#8
Re: Activex Support without MFC
it worked to embed the control but it was much harder to access the functions which I am still working on
-
September 30th, 2008, 09:53 AM
#9
Re: Activex Support without MFC
I found this article on the Microsoft support website http://support.microsoft.com/kb/192560 have you tried it out, it claims to provide activex support for any windows program.
-
September 30th, 2008, 11:57 AM
#10
Re: Activex Support without MFC
You don't need anything, neither MFC or ATL to host ActiveX
It's included natively in windows (ocx class), without code.
(method given on comp.os.ms-windows.programmer.win32 ng)
-
October 3rd, 2008, 03:00 AM
#11
Re: Activex Support without MFC
I've used the WPF on Win32 interface to embed the activex object in a wpf form and used it that way under win32 and it has worked very well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|