Results 1 to 3 of 3

Thread: Problem with recompiling OCX - CLSID

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Netherlands
    Posts
    22

    Problem with recompiling OCX - CLSID

    Hello there.

    I have created some controls (like coolbar, subclassing, hooking controls).

    However, If I recompile the source, the classes in the control get a new CLSID. Old programs can't use my control anymore.

    How can I recompile without needing to recompile the other programs aswell. I have heard something about working with typeLibs. Can anyone explain that topic aswell?
    Yet Another Perl Programmer



    Working with the Windows 32 API
    Test my carrier game
    X-Programming Forums (members and testers wanted!)

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    hi there yapp,
    I think what u want to do can be achieved by setting the OCX/DLL projects Version Compability mode to Binary Compability

    MSDN

    Binary Compatibility — Useful for maintaining compatibility among projects that have been compiled using your component.
    -= a peet post =-

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    Netherlands
    Posts
    22
    I have been using that. Thanks for your fast reply anyway

    Binary compat. is not exactly what I want.
    I have seen some magic with type libaries...

    Binary compatibility recompiles the project, but creates a new version of the VTABLE for each class. The VTABLE is a table with data about all the methods attached to a class.

    I want to create a fresh new file, with is still compatible with the previous file. Off course I can't change the method names or parameters, but it would be nice If I can even overrule that...
    Yet Another Perl Programmer



    Working with the Windows 32 API
    Test my carrier game
    X-Programming Forums (members and testers wanted!)

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