PDA

Click to See Complete Forum and Search --> : calling COM EXE


fbabinea
May 7th, 2001, 08:02 AM
I know this is a really simple question, and am almost embarrassed to ask it. I've got a VB application calling a VB COM EXE. I've made a reference to it, and inserted the following code:
dim obj as myComEXE.myClass
set obj = new myComEXE.myclass

When I run my standard EXE that calls the COM EXE, I get an error saying it can't create object.

My COM EXE basically has a class and a module. The class calls the Module's Main function, which in turn calls a few sub functions. All it is doing is connection to db, reading txt file.

What am I doing wrong???

Tks,
F

wolfofthenorth
May 7th, 2001, 08:32 PM
Make sure the exe is registered.

Other than that... sounds good

:)

tal_of
May 8th, 2001, 01:26 AM
In your ActiveX exe project, run File->make. Then run it once (dbl-click on the file)
Should work