Results 1 to 3 of 3

Thread: Calling ADO from Borland C++ COM

  1. #1

    Thread Starter
    Fanatic Member THEROB's Avatar
    Join Date
    Oct 2000
    Location
    I'm cold and there are wolves after me
    Posts
    575

    Calling ADO from Borland C++ COM

    My secretary hopes that I will pay her, her landlord hopes that she will produce some rent, the Electricity Board hopes that he will settle their bill, and so on. I find it a wonderfully optimistic way of life. [Dirk Gently]

  2. #2
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163

    is there environment for com in borland?

    is there environment for com in borland?
    Purushottam

  3. #3

    Thread Starter
    Fanatic Member THEROB's Avatar
    Join Date
    Oct 2000
    Location
    I'm cold and there are wolves after me
    Posts
    575
    Yes - to make a COM object in Builder 5 or 6 just do the following:

    1. Click File | New, choose the Activex Tab and choose ActiveX Library

    2. Click File | Save and save the project - The project name will be the same as the file name.

    3. Click File | New - choose the Activex Tab and choose Automation Object. Enter the coClass name - this will be the class name

    4. Click View | Type Liabrary.

    5. To add a method click the New method button - in the parameters tab you can specify the arguments. Click Refresh when finished

    6. Click View | Project Explorer - the code for this new method is in impl.cpp file

    7. Goto Project | Options, On the Packages Tab, uncheck the "Build with runtime packages" checkbox, On the Linker Tab, uncheck the "Use dynamic RTL" checkbox

    8. Compile the Dll

    N.B. Every time you recompile dll you will need to specify new GUID numbers. To do this go to the Type Liabrary and click on each Icon if there is a GUID textbox on the attributes tab - right click on it and choose New GUID - when finished clcik refresh.
    My secretary hopes that I will pay her, her landlord hopes that she will produce some rent, the Electricity Board hopes that he will settle their bill, and so on. I find it a wonderfully optimistic way of life. [Dirk Gently]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width