Ravi Kiran
October 7th, 1999, 09:26 PM
Hi All,
I am recently encountering this problem. I have a portion of my program running as active-x dll.
I wrote this, tested it and compiled to dll. Every thing worked fine, and my other prorgams (clients) were able to access it.
Now i have added new code to it. I Checked the binary compatabilty option ON, and selected the dll name. Added a whole new Class. No problems with OLE interface (because VB did not crib!). During developmet, put the dll in run mode, and in the client progam select the .VBP project as reference, and i was able to access the new class and functionality.
Now comes the problem: When i want to compile this dll with same old name, but version changed, VB is cribing that "Error while compiling" and it generates the Linker Error that says "Error while opening the file ..xxx.dll"
I tried all sorts of stuff, i can think of.
Only thing that works - A NO GOOD solutn- unregister the server (dll) from Dos window, using regsvr32 /u, then delete the dll file. Reopen VB and it will crib that "dll (for Binary compatability) not found" and recompile, in which case it will generate new ClSID etc.
The question is :
How to re-compile a Active-x dll in VB, which was compiled once before and is active? The new version is written w/o affecting the existing interface, only new fns are added?
VB Ver:5.0
Thanks for any help.. please..
Ravi Kiran
RK
I am recently encountering this problem. I have a portion of my program running as active-x dll.
I wrote this, tested it and compiled to dll. Every thing worked fine, and my other prorgams (clients) were able to access it.
Now i have added new code to it. I Checked the binary compatabilty option ON, and selected the dll name. Added a whole new Class. No problems with OLE interface (because VB did not crib!). During developmet, put the dll in run mode, and in the client progam select the .VBP project as reference, and i was able to access the new class and functionality.
Now comes the problem: When i want to compile this dll with same old name, but version changed, VB is cribing that "Error while compiling" and it generates the Linker Error that says "Error while opening the file ..xxx.dll"
I tried all sorts of stuff, i can think of.
Only thing that works - A NO GOOD solutn- unregister the server (dll) from Dos window, using regsvr32 /u, then delete the dll file. Reopen VB and it will crib that "dll (for Binary compatability) not found" and recompile, in which case it will generate new ClSID etc.
The question is :
How to re-compile a Active-x dll in VB, which was compiled once before and is active? The new version is written w/o affecting the existing interface, only new fns are added?
VB Ver:5.0
Thanks for any help.. please..
Ravi Kiran
RK