Exforsys

Online Training

Help on Creation

This is a discussion on Help on Creation within the C and C++ forums, part of the Programming Talk category; I am trying my hands on creating a simple COM object using ATL. I want to know the step by ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2007, 07:51 AM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
Help on Creation

I am trying my hands on creating a simple COM object using ATL. I want to know the step by step procedure for doing this so that I can proceed confidently without leaving a minor point in my application. Kindly help me out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 04:05 PM
Member
 
Join Date: May 2006
Posts: 45
Allan is on a distinguished road
The step by step procedure for creating a simple COM object using ATL is as below:
Step 1: Running the ATL COM Wizard
Step 2: Creating a new ATL object
Step 3: Adding a method
Step 4: Compiling the DLL
Step 5: Testing the COM Server with Visual Basic
Step 6: Testing the COM Server with Visual C++
Step 7: Compile and run the program
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 04:13 PM
Member
 
Join Date: May 2006
Posts: 47
blenda is on a distinguished road
This is really a nice thread and good answer given for the query. Can you kindly detail on each step which would give a detailed overview for all of us.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-06-2008, 04:15 PM
Member
 
Join Date: May 2006
Posts: 45
Allan is on a distinguished road
Sure I am glad to give you all detailed explanation on each of the above steps:

Step 1: Running the ATL COM Wizard
In this first you have to choose the ATL COM AppWizard. Then give a project name and save. Select the Server Type. Then click the finish button which gives you a window New Project Information giving details of files that would be created. Press Ok and proceed to next step.

Step 2: Creating a new ATL object
Click the View menu and choose Workspace. In that click the ClassView tab. In this you will see the classes of the project name you created. Choose this and right click and choose their New ATL Object. From this choose the default Simple Object and on clicking next you would be taken to ATL Object Wizard Properties. Define the properties and proceed to Step 3

Step 3: Adding a method
In the same ClassView tab as detailed in step 2 you would have Add Method. Choose this and add the method you want.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-06-2008, 04:21 PM
Member
 
Join Date: Apr 2006
Posts: 65
priyaraji is on a distinguished road
Friends please note that in step1 we have to select the Server Type as Dynamic Link Library as we would be building a Server DLL in our case.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Creation of cursors and triggers in sql harikreative Microsoft .NET 1 02-19-2007 01:18 PM
missed value set creation in apps technical training durga.mahapatra Suggestions & Feedback 0 02-02-2007 10:40 AM
QA Professional required @ APEX Creation, Ahmedabad techguru Experienced Job Seekers - India 0 05-31-2005 11:44 PM
QA Professional required @ APEX Creation, Ahmedabad techguru Freshers Jobs 0 05-31-2005 11:26 PM
webdesigner requied @ APEX Creation Ahmedabad techguru Experienced Job Seekers - India 0 05-06-2005 12:11 PM


All times are GMT -4. The time now is 12:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.