-
Change dll reference
I have a problem while using Active X dll. I've build my aplication into dll file. And then I referenced that file using VBA on AutoCAD application using Installshield setup.
On the first running my application well running. But when I try to reinstall my application then error message appear "Automation Error" and then "Active X can't create Object". I look up to the reference, there is no problem about the directory where my dll file exist.
This error also appear when I replace dll file from Explorer with the new one.
How to solve this problem, please help me.
Regard
Nur Budi
-
oghh I should have read this one first
goto your top tool bar to Project =>project properties
then goto component tab
at the bottom make sure that project or binary compatability
is set.
it sounds like no compatability option is currently set
to make it keep working now...you would have to manually re- register the dll everytime you update it..you do this by going to
startbutton -> run
then type "regsvr32 " then drag and drop dll into the textbox
and hit return...message should show saying register successful
but if you have project or binary compatability set you should not have to do this unless you add new classes to your dll
once binary compatibility is set. you will not be able to add new functions to your classes or change argument numbers and types...so use project compatability until you are happy with with its layout