Results 1 to 8 of 8

Thread: [VB6] Compile ActiveX Controls compatibles

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    [VB6] Compile ActiveX Controls compatibles

    what i'm doing is;
    i have 1 groupproject for test my control. but for a complete test, i compile the control(*.ocx file) and use in other project.
    if these new project has the control used and if i put another compile control(i'm speak the same control, but updated), why give an error. and for use it i must rebuilt(only change the controls in form).
    how can i avoid these problem?
    thanks
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] Compile ActiveX Controls compatibles

    After you compile your control to an ocx, suggest:
    1. Open the project and view project properties
    2. Click on the Component tab in the properties window
    3. Choose "Binary Compatibility"
    4. Click the ellipsis button and select the OCX you just compiled

    Now if you make minor changes and recompile, you should not have those problems. If you add or remove any Public properties or Public methods, you will break compatibility. If you change the parameters within any Public methods, you will break compatibility. When you break compatibility, your ocx will no longer be the same and will be a new version.

    Recommend reading this regarding compatibility.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [VB6] Compile ActiveX Controls compatibles

    if you look in my sig, there's a link to a post " Set your VB6 ActiveX Compatibility" about binary compatibility, and how to use it effectively.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [VB6] Compile ActiveX Controls compatibles

    Quote Originally Posted by LaVolpe View Post
    After you compile your control to an ocx, suggest:
    1. Open the project and view project properties
    2. Click on the Component tab in the properties window
    3. Choose "Binary Compatibility"
    4. Click the ellipsis button and select the OCX you just compiled

    Now if you make minor changes and recompile, you should not have those problems. If you add or remove any Public properties or Public methods, you will break compatibility. If you change the parameters within any Public methods, you will break compatibility. When you break compatibility, your ocx will no longer be the same and will be a new version.

    Recommend reading this regarding compatibility.
    hi LaVolte
    give me an error: "unable to set version component compatible:" and the path where is my OCX file(i deleted for try see if gives me the error, but give me error)
    VB6 2D Sprite control

    To live is difficult, but we do it.

  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] Compile ActiveX Controls compatibles

    You cannot delete the ocx or if you point to the wrong ocx, you will get those errors.
    In techgnome's signature, he has a link which has a step by step method. Try that now.

    Also, please spend a little time and read the compatibility information in the link I gave you. It will help you better understand why & what we are recommending.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  6. #6

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [VB6] Compile ActiveX Controls compatibles

    Quote Originally Posted by LaVolpe View Post
    You cannot delete the ocx or if you point to the wrong ocx, you will get those errors.
    In techgnome's signature, he has a link which has a step by step method. Try that now.

    Also, please spend a little time and read the compatibility information in the link I gave you. It will help you better understand why & what we are recommending.
    i never work with these option, but i belive that resolve the problem
    by testing, i change the file path and don't give me the error
    (i will see your link, but i will try copy the entire manual(i sod the index))
    everytime that i compile the file, did i need do these again?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [VB6] Compile ActiveX Controls compatibles

    no. that's the point of Binary Compatibility. Follow the steps in my link, and read the stuff from LaVolpe... you shouldn't need to change it again, except in a few cases, but hopefully that isn't very often.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [VB6] Compile ActiveX Controls compatibles

    thanks to everyone.
    for finish these topic, need ask anotherthing:
    my control is compatible with other OOPL?
    VB6 2D Sprite control

    To live is difficult, but we do it.

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