>I have a project with several custom controls. I had to remove all
>dependencies and start all components at version 1.0. I have created a new
[quoted text clipped - 7 lines]
>the Type Library (I am using OLE viewer) on the Test machine. How can it be
>it is still looking for an other version?

Signature
Mike
Microsoft Visual Basic MVP
Thanks Mike,
Yes, I did recompile, I also tried to copy the exe from the dev box (same
file size/date). The .frm files are the only files refering to the controls
and these have the correct guids. All the ocx and dll files are the same
file size/date, un and reregistered them, does not make a difference. I am
really puzzled. It has to be something else inside the registry, maybe not
in the type library...
>>I have a project with several custom controls. I had to remove all
>>dependencies and start all components at version 1.0. I have created a new
[quoted text clipped - 21 lines]
> you haven't recompiled your EXE, that's the first thing I'd attempt to fix
> this.
MikeD - 31 May 2007 20:38 GMT
> Thanks Mike,
>
[quoted text clipped - 4 lines]
> difference. I am really puzzled. It has to be something else inside the
> registry, maybe not in the type library...
No, it doesn't have to be something related to the Registry. In the KB
article I mentioned, the problem has nothing to do with the Registry. It
has to do with icons and their color depths being higher than Windows is
configured to display.

Signature
Mike
Microsoft Visual Basic MVP
>>>I have a project with several custom controls. I had to remove all
>>>dependencies and start all components at version 1.0. I have created a
[quoted text clipped - 21 lines]
>> you haven't recompiled your EXE, that's the first thing I'd attempt to
>> fix this.
Carlo - 01 Jun 2007 13:56 GMT
Mike,
Good suggestion. However the color depth is not the problem here, my test
machine has a 32 bit color setting and my icons have a very low color depth,
and are actually quite crappy and unprofessional looking. I appreciate your
feedback. Will post the solution when I find it. Thanks.
>> Thanks Mike,
>>
[quoted text clipped - 36 lines]
>>> But if you haven't recompiled your EXE, that's the first thing I'd
>>> attempt to fix this.
Ken Halter - 31 May 2007 21:18 GMT
> Thanks Mike,
>
[quoted text clipped - 4 lines]
> difference. I am really puzzled. It has to be something else inside the
> registry, maybe not in the type library...
Wanna fix that? In almost every case I've seen, the problem is caused by
outdated OCA files... so, search your entire drive for OCA files and delete
every one of them. Now, run RegClean to clean up the left over garbage,
then, rebuild your control, package and deploy. Birds will sing, flowers
will bloom <g>
OCA files are temporary typlib caches and they are "brittle". I would be
nice if VB deleted them when you leave the IDE, but we have what we have,
so....

Signature
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
The Peasant - 01 Jun 2007 10:25 GMT
I agree about the OCA files - delete the lot. But do search for multiple
instances of OCX files as we had an instance where a rogue OCX was left
elsewhere on the path and was used by the system.
If all else fails, try VB Powerwrap to wrap all files within the EXE.
After 6 weeks of tearing hair, this has worked a treat for the last 12
months.
http://www.moonlight-software.com/vbpower.htm
The Peasant
>> Thanks Mike,
>>
[quoted text clipped - 14 lines]
> nice if VB deleted them when you leave the IDE, but we have what we have,
> so....
Carlo - 01 Jun 2007 14:17 GMT
Ken,
Did that, there are no OCA files to be found on my system. I noticed the
Microsoft RegClean does not clean all the OCA references out of the
registry. I have been using a custom cpp application to clean up these
references. Still no luck. I have checked for double OCX files in the system
path. Nothing... I;m not giving up, will let you know what I find. Thanks!!
>> Thanks Mike,
>>
[quoted text clipped - 14 lines]
> nice if VB deleted them when you leave the IDE, but we have what we have,
> so....