Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 13th, 2006, 09:46 PM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default Help Creating simple COM object

Hi, I want to make a C++ object that I access via HTA. I've done this with ActiveX in C# but I can't find any info on C++.

Can you please just lead me? tell me where to find out more info or post a sample and simple application?

Thank you very much
Pedro Duarte
Reply With Quote
  #2 (permalink)  
Old January 14th, 2006, 09:11 AM
Authorized User
 
Join Date: Nov 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Visit
http://www.kicit.com/

Reply With Quote
  #3 (permalink)  
Old January 14th, 2006, 10:12 AM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default

are you kidding?

Please somebody willing to help, reply to this thread.
Reply With Quote
  #4 (permalink)  
Old January 14th, 2006, 02:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Well if you want to write a COM component that you can access
from non C++ clients then all you need to do is to implement IUnknown
and IDispatch and write a few support functions which will register
your component in registry. Non of these tasks are impossible in C++,
but doing it all by yourself would require you to have a reasonable
understanding of COM.
Also, I don’t see why a person who already has access to something like a
C# compiler (and in most likelihood VS .NET IDE as well) would not make use
of tools like VC++ or VC++.NET.

If you are going for either versions of VC++ you have a very neat option
of creating COM objects with either ATL or MFC. Both ways are reasonably
easy unless you are doing something unheard of.

This cool article will give you enough knowledge on COM programming
and developing a simple COM object using ATL in VC++.

http://www.microsoft.com/msj/0697/atl.aspx

Regards
Ankur Verma
Reply With Quote
  #5 (permalink)  
Old January 15th, 2006, 09:32 AM
Authorized User
 
Join Date: Jul 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to stalker Send a message via MSN to stalker
Default

Thx, The reason why I need to do it in C++ is because my teacher won't accept it in another language :/

I'll check the URL you gave me.

thank you

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a simple ejb vinay.bk EJB 3 September 12th, 2006 04:39 AM
Error Occurred creating Report Object: Object does sa_moizatyahoo Classic ASP Professional 0 February 1st, 2005 10:29 AM
Creating an Object MiltonAbreu Excel VBA 2 July 28th, 2004 11:57 AM
Creating a simple .Net service badgolfer VS.NET 2002/2003 0 March 31st, 2004 04:29 AM
Creating simple Menu godhsf80 Javascript 1 November 30th, 2003 12:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.