Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / November 2005



Tip: Looking for answers? Try searching our database.

Component control connection disappearing when rebuilding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aaa - 19 Nov 2005 21:36 GMT
I have a VB project which uses a Control Component
(Project->Components...->Controls). However, when I recompile the Control
Component and then reopens the VB project the Control Component is deselected
in Project->Components...->Controls and I cannot build my project unless I
check my component again. Why does VB uncheck my component when I rebuild my
component? It hasn't done that before - how can I get rid of this problem?
MikeD - 19 Nov 2005 23:28 GMT
>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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.