|
-
Jul 21st, 2005, 04:46 AM
#1
Thread Starter
New Member
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 and 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?
-
Jul 22nd, 2005, 10:55 AM
#2
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.
-
Jul 25th, 2005, 02:06 AM
#3
Thread Starter
New Member
Re: activex.exe only works when running in VB
-
Jul 25th, 2005, 08:59 AM
#4
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.
-
Jul 25th, 2005, 05:25 PM
#5
Fanatic Member
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?
-
Aug 5th, 2005, 05:56 AM
#6
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|