Click to See Complete Forum and Search --> : How to call Com server from VB application
Shchekotova
May 17th, 2006, 04:47 PM
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.
franmal
May 22nd, 2006, 08:00 AM
Try regsvr32 dllname from a cmd session.
dilettante
Jun 4th, 2006, 06:16 PM
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?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.