Exforsys
+ Reply to Thread
Results 1 to 5 of 5

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 ...

  1. #1
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128

    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.


  2. #2
    Allan is offline Member Array
    Join Date
    May 2006
    Answers
    40
    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


  3. #3
    blenda is offline Member Array
    Join Date
    May 2006
    Answers
    36
    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.


  4. #4
    Allan is offline Member Array
    Join Date
    May 2006
    Answers
    40
    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.


  5. #5
    priyaraji is offline Member Array
    Join Date
    Apr 2006
    Answers
    52
    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.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...