Article View: comp.os.ms-windows.programmer.win32
Article #2154Re: ActiveX How To
From: Jason Shannon
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
28 lines
1576 bytes
1576 bytes
Peter Huyghe wrote in message <34FE88DB.BB42EDB4@roularta.be>... >Is it possible to use an ActiveX control in a Non-MFC/Non-OWL app ? Yes. >I make pure API C/C++ windows applications, and I'd like to use an >ActiveX control. If you have a good understanding of COM and OLE, you can write it all from scratch, and it isn't too hard (unless you're doing it in C). You only need to support three or four COM interfaces (a lot of their methods can be simple one-liners). The ATL class libraries in VC++ 5.0 provide a lot of utility classes that make COM objects and interfaces easy to implement and use. VC++ also has several utility classes (outside of ATL - in comdef.h) for wrapping interface pointers and handling BSTRs, etc. There's a sample ATL container application (called ATLCON) which shows you which interfaces you need to support to host an ActiveX control. I think you can get away with only two. -- Jason Shannon http://www.araxis.com
Technical Details
Message-ID:
<6dm3ek$c6e$1@kite.ansa.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34FE88DB.BB42EDB4@roularta.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dfb,6e6811f721658ce3 X-Google-Attributes: gid113dfb,public X-Google-Thread: 103bde,6e6811f721658ce3 X-Google-Attributes: gid103bde,public From: "Jason Shannon" <jrs@araxis.com> Subject: Re: ActiveX How To Date: 1998/03/05 Message-ID: <6dm3ek$c6e$1@kite.ansa.co.uk> X-Deja-AN: 331052694 References: <34FE88DB.BB42EDB4@roularta.be> X-Server-Date: 5 Mar 1998 11:48:16 GMT X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Araxis Newsgroups: comp.os.ms-windows.programmer.win32,borland.public.cpp.winapi