Results 1 to 3 of 3

Thread: How to call Com server from VB application

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    19

    How to call Com server from VB application

    Hi all ,
    i have com object (c++) made as exe (not dll)
    I need to access this com object from my vb application
    How to regestrate it . For example if it were dll i could add it to refence.

  2. #2
    New Member
    Join Date
    May 2006
    Posts
    7

    Re: How to call Com server from VB application

    Try regsvr32 dllname from a cmd session.

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How to call Com server from VB application

    No, regsvr32 isn't much help here.

    An ActiveX EXE written in VB 6.0 will register itself the first time it is run. You can control the process using command line switches as well:

    myactivex.exe /regserver

    myactivex.exe /unregserver

    Of course that isn't much help to a C++ programmer. I assume you'd need to make an API call like installer utilities do. Then again maybe whatever template framework you're using embeds code similar to that which the VB compiler does for its ActiveX EXEs?

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