Click to See Complete Forum and Search --> : rebuilding a VB activeX


Sujit Chakku
March 20th, 2001, 08:27 AM
I call a VB activeX dll from a VC++ as a com object. But each time I make a change in the dll, I need to rebuild the VC++ code that calls the dll. If I don't do that the error message 'Creation failed' appears at the point of invoking the dll.
Please tell where I am going wrong.


Sujit Kumar Chakrabarti

Clearcode
March 20th, 2001, 08:43 AM
In the project properties of the VB ActiveX control select "Binary Compatibility".

This will keep the same GUIDs for the control and its methods and thus not break the VC++ calling program.

HTH,
Duncan

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com

Cakkie
March 20th, 2001, 09:38 AM
If you are calling the dll via an interface, make sure the interface is set to Binary compatibility, and the component itself to Project compatibility.

Tom Cannaerts
slisse@planetinternet.be

The best way to escape a problem, is to solve it.