-
Feb 1st, 2023, 11:31 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] MSComctl32 and ComCtl32.ocx
OMG.. I hate this stuff. I know I know... use the common controls replacement project. But for whatever reason I can't get it to work.
Meanwhile... I'm installing VB6 on a new machine and load up my project and get tons of errors.
Line 5: Could not create reference: '{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.2#0'.
Line 14: Could not create reference: '{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.5#0'.
Line 3294: Class ComctlLib.Slider of control Slider was not a loaded control class.
It looks like this part of the error on line 5 - #2.2 Should be #2.0 on the new machine. But this doesn't seem to fully fix things. And yes this is after adding SP6.
Any definitive way to sort out this MsComCtl32 stuff (other than the replacement common controls project)?
-
Feb 2nd, 2023, 12:24 AM
#2
Re: MSComctl32 and ComCtl32.ocx
Change everything to 1.0 and it will load.
Code:
{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.2#0
{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.5#0
to
Code:
{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#1.0#0
{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.0#0
It can be not only in the *.vbp but also in to *.frm
-
Feb 2nd, 2023, 07:16 AM
#3
Re: MSComctl32 and ComCtl32.ocx
There is a security update of both Comctl32.ocx and Mscomctl.ocx (there is no Mscomctl32.ocx btw) post Service Pack 6 which breaks .vbp projects saved on a machine with the security update for machines without the security update (only w/ SP6) the way you are experiencing it in OP.
cheers,
</wqw>
-
Feb 2nd, 2023, 07:31 AM
#4
Re: MSComctl32 and ComCtl32.ocx
There is an update with some proper fixes, typelib version 2.1, and the one to use.
The version 2.2 "security rollup" is problematic in many ways, including lots of "off by one" errors. Those show in the form of broken collection indexing and even truncating String properties by 1 character here and there. The security problems it was meant to address really only apply to cases like controls hosted in an IE page or a malware delivery system like Office VBA.
The actual typelib version numbers vary by OCX of course. The numbers here are from Mscomctl.ocx.
-
Feb 2nd, 2023, 08:08 AM
#5
Thread Starter
Fanatic Member
Re: MSComctl32 and ComCtl32.ocx
Thanks for the replies. The Security Update seems to have sorted out that problem. Now for some reason key words like "Database" and "Picture" aren't working. I think my VB6 had a stroke. But at least it mostly loads.
-
Feb 2nd, 2023, 08:23 AM
#6
Re: MSComctl32 and ComCtl32.ocx
Originally Posted by Darkbob
I think my VB6 had a stroke. But at least it mostly loads.
And... it's more secure :-))
cheers,
</wqw>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|