CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2000
    Location
    Pune, Maharashtra, India
    Posts
    2

    rebuilding a VB activeX

    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

  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: rebuilding a VB activeX

    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
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  3. #3
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: rebuilding a VB activeX

    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
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured