>I have a VB project which uses a Control Component
> (Project->Components...->Controls). However, when I recompile the Control
[quoted text clipped - 4 lines]
> my
> component? It hasn't done that before - how can I get rid of this problem?
The most likely cause is that you haven't set Binary Compatibility for the
component. Bring up the component project's Properties dialog and click on
the Component tab. Here you'll see options for Version Compatibility. You
can click on the Help button for some pretty much useless information if you
want. The bottom line is that once you've compiled your component, COPY it
to another folder (I copy them to a folder named Compatibility) and then go
into this dialog, set Binary Compatibility, and specify the file you copied
(NOT the original file).
The reason you want to use a copy of the file for compatibility is that VB
opens this file to check compatibility and doesn't always close it (known
bug). So, what happens is that when you recompile, you get an error because
the file is in memory and can't be overwritten (you get a permission denied
error). There are other reasons too. For example, to ensure ALL revisions
remain compatible with the original release version (as you compile new
versions, you simply don't overwrite the file in the Compatibility folder).
For more information, see the following:
How To Use Project and Binary Compatibility
http://support.microsoft.com/default.aspx?scid=kb;en-us;161137
and Ken Halter's explanation and suggestions:
http://www.vbsight.com/BinaryComp.htm

Signature
Mike
Microsoft MVP Visual Basic
aaa - 20 Nov 2005 08:08 GMT
Thanks Mike,
My component is a not a VB component but a Visual C++ 6 component. How can I
do then?
Regards,
Joachim
> >I have a VB project which uses a Control Component
> > (Project->Components...->Controls). However, when I recompile the Control
[quoted text clipped - 29 lines]
> and Ken Halter's explanation and suggestions:
> http://www.vbsight.com/BinaryComp.htm
MikeD - 20 Nov 2005 12:06 GMT
> Thanks Mike,
>
> My component is a not a VB component but a Visual C++ 6 component. How can
> I
> do then?
I don't know. I've written stuff in VC, but nothing ActiveX. You'll need to
check VC's docs or ask in a VC newsgroup.

Signature
Mike
Microsoft MVP Visual Basic