Discussion:
Creating an OLE/ActiveX Control Container
(too old to reply)
Tom
2004-07-13 22:21:36 UTC
Permalink
Hi,

I wrote an industrial application in Win32 C and, except for this last
issue, everything has worked well. Now, however, I need to add two ActiveX
controls to the project, and I'm running into a brick wall.

My company has used two ActiveX controls made a few years ago in Visual
Basic 6.0 for a particular machine. We dropped the controls into an
ActiveX container made by another company. That company is out of
business, so I wrote the interface myself in C (almost everything we do
around here is in C or very C-like, so it made sense to be consistent).

The documentation on MSDN tells me to buy Adam Denning's 1995 book called
OLE Controls Inside Out and read Chapter 19. I bought the book. Chapter 19
is a listing of Microsoft's proposed standards for ActiveX containers, but
tells you nothing about actually coding one. There is also supposed to be
some example on the Microsoft website, but the link is now dead.

Can anyone give me information on adding ActiveX controls into a Win32 C
application or point me to a reference? The only information I can find
about doing this is that it is an arduous pain in the @$$, but I'm not
about to junk 4 weeks worth of programming.

Thanks!
Tom
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jiangsheng[Microsoft MVP of VC++]
2004-08-08 08:51:18 UTC
Permalink
you'd better to use MFC/ATL or just view their source files to see MFC/ATL
ActiveX Control Containe implemention.
Post by Tom
Hi,
I wrote an industrial application in Win32 C and, except for this last
issue, everything has worked well. Now, however, I need to add two ActiveX
controls to the project, and I'm running into a brick wall.
My company has used two ActiveX controls made a few years ago in Visual
Basic 6.0 for a particular machine. We dropped the controls into an
ActiveX container made by another company. That company is out of
business, so I wrote the interface myself in C (almost everything we do
around here is in C or very C-like, so it made sense to be consistent).
The documentation on MSDN tells me to buy Adam Denning's 1995 book called
OLE Controls Inside Out and read Chapter 19. I bought the book. Chapter 19
is a listing of Microsoft's proposed standards for ActiveX containers, but
tells you nothing about actually coding one. There is also supposed to be
some example on the Microsoft website, but the link is now dead.
Can anyone give me information on adding ActiveX controls into a Win32 C
application or point me to a reference? The only information I can find
about to junk 4 weeks worth of programming.
Thanks!
Tom
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Continue reading on narkive:
Loading...