Re: Binary Compatibility

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Jack" <SonomaJack@xxxxxxxxxxxxxxxxx> wrote in message
news:%23AIRHsIOGHA.428@xxxxxxxxxxxxxxxxxxxxxxx
I have an OCX that is set for Binary Version Compatibility.

Sometime when I compile it I get a message that the component is in use.
Typically I just close VB6 and restart, then compile and it then works.
However lately it have become more and more difficult to get it to
compile, I need to close VB rename the ocx, restart VB (get a message that
it cannot find the ocx), rename the ocx back, reset binary compat then
compile.

Any ideas on how to avoid this convoluted process and just get it to
compile?

jack

Are you over-writing the compatibility file each time you compile? That can
cause quite a few problems. The compatibility model should be a separate
copy of the component you're working on. Also, when you rename (or move) a
registered component, the changes are reflected in the registry
automatically. Since you're renaming, doing other things and renaming back,
you'll probably end up in DLL Hell (you're already half way there <g>)
before long and end up with a bunch of extra entries in the registry for the
component you're working on.

Here's a bit more about compatibility.....

Binary Compatibility
http://www.vbsight.com/BinaryComp.htm

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm


.



Relevant Pages

  • Re: Wave Driver
    ... I am working on a wave driver. ... something I have to remove the entry from the registry, ... compile the changes, register and restart again. ... compile and replace the existing .drv file without restarting it. ...
    (microsoft.public.development.device.drivers)
  • Re: Binary Compatibility
    ... Thanks, I am now tht proud owner of ComGuard, never to enter DLL Hell again ... Sometime when I compile it I get a message that the component is in use. ... that it cannot find the ocx), rename the ocx back, reset binary compat ...
    (microsoft.public.vb.controls)
  • RE: Access to remote registry (RegistryPermissionAttribute)
    ... a per-assembly basis, so if you add an assembly: qualifier to your attribute, then you should be able to compile the code. ... >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 ... >I'm trying to access a registry key on a remote computer. ... >public static string ReadRegistryKey(string PsMachineName) ...
    (microsoft.public.dotnet.security)
  • Re: Registry is written at compile time
    ... to the Registry at compile time. ... Definitely want as much compile time error detection as possible, ... paste in the details of the error message and the sample code. ...
    (microsoft.public.vc.mfc)
  • Re: Heres a good one...
    ... >> of seconds (for a large package and practically instantly for a reasonably ... >> compile, I merely recompile it, by executing the same command used by ... I can restart the building procedure of the ... Dan Pop ...
    (comp.lang.c)