
VB changes a Project Component to a hidden Project Reference
A few posts have mentioned this, notably Alan Mailer's problem with Winsock
on 11.09.00.
VB will occasionally change a reference to a Component OCX to a hidden
Reference to an OCA.
eg: I have added the MS Windows Common Controls component (MSCOMCTL.OCX) in
order to use, say, a ListView.
Later, I open the project and forms won't load and ListViews have reverted
to PictureBoxes.
The MS Windows Common Controls component is no longer checked in the
Component's list.
Worse, attempting to check the component returns a "Name conflicts with
existing project or library".
Things now seem drastic - can't add the component, can't run without it.
Opening the VBP file in a text editor reveals the problem.
When a component is selected, the VBP usually includes a line such as:
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
but now, there is no 'Object' line, but instead a 'Reference' line,
Reference=*\G{583A9649-7F7C-443E-94AD-65868A545AEA}#2.0#0#..\..\WINNT\system
32\MSCOMCTL.oca#Microsoft Windows Common Controls 6.0 (SP4)
Yet this reference does not appear in the Project References list.
Can anyone, Microsoft included, answer when and why VB makes this change?
Regards
Bill Wilson