Results 1 to 6 of 6

Thread: activex.exe only works when running in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    5

    activex.exe only works when running in VB

    I have created an ActiveX.exe containing a single class. The purpose of this class is to use a comport on a remote machine. But I can't even get it to work on the local machine, unless I start the ActiveX.exe project in VB and then access it from another VB project. I have tried to use both
    VB Code:
    1. createobject
    and
    VB Code:
    1. set obj = new cls
    but I get a "The specified module could not be found." error.
    I have done this many times before, and it usually works fine so I'm a bit puzzled. Any suggestions?

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: activex.exe only works when running in VB

    Have you compiled with Binary Compatibility?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    5

    Re: activex.exe only works when running in VB

    Yes I have.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: activex.exe only works when running in VB

    In that case, could you have a permissions issue? If you compile an ActiveX object on a machine, then it should be creatable. If you are using binary compatibility there should be no problems.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  5. #5
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: activex.exe only works when running in VB

    This might be a silly question but, did you actually register the ActiveX object using regsvr32?

  6. #6
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: activex.exe only works when running in VB

    If you've compiled it then it will be automatically registered on the host machine (always a bad idea, but the boys at m$ . . .)

    Sounds to me like an interface forwarding problem.

    What you need to do is to clean out the registry of all references to your server (activex exe) switch compatibility to None, and recompile, then switch compatibility to binary.

    You will need to delete the exe from your filesystem (or copy it elsewhere) before you clean your registry. I use regscrub (google for free download) to clean out the entries.

    Recompile your exe as above and then you should be all done.

    Any project that references this exe will need to be re-referenced, and recompiled against the new compilation
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

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