Results 1 to 6 of 6

Thread: [RESOLVED] MSComctl32 and ComCtl32.ocx

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    558

    Resolved [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)?

  2. #2
    PowerPoster
    Join Date
    Feb 2017
    Posts
    4,987

    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

  3. #3
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    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>

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    558

    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.

  6. #6
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    Re: MSComctl32 and ComCtl32.ocx

    Quote Originally Posted by Darkbob View Post
    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
  •  



Click Here to Expand Forum to Full Width