Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 13th, 2006, 09:46 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
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
Location: , , India.
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
Location: , , .
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
Location: , , .
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
Location: , , .
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
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:30 PM.


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