Results 1 to 3 of 3

Thread: calling COM EXE

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Posts
    31

    Question calling COM EXE

    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

  2. #2
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    Make sure the exe is registered.

    Other than that... sounds good

    That which does not kill us, only makes us stronger.

  3. #3
    New Member
    Join Date
    Mar 2001
    Posts
    6

    Try this

    In your ActiveX exe project, run File->make. Then run it once (dbl-click on the file)
    Should work

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