Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #2065

Re: What's the reason for comctl32.dll + comctl32.ocx in Win7 SysWOW64 folder?

From GS <gs@somewhere.net>
Newsgroups comp.lang.basic.visual.misc, microsoft.public.vb.general.discussion
Subject Re: What's the reason for comctl32.dll + comctl32.ocx in Win7 SysWOW64 folder?
Date 2014-05-09 08:15 -0400
Organization A noiseless patient Spider
Message-ID <lkigu0$kfp$1@dont-email.me> (permalink)
References <lkghip$n9s$1@dont-email.me> <ejpnm99ela8r9ht4oqdfit61ia6ffaep14@4ax.com> <lkgs91$9r9$1@dont-email.me> <h0dom9lka7bj8ncacji49e8qhrb0ch16o1@4ax.com> <lkhkjf$io7$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


After much googling I'm probably going to go with...

Shell "regsvr32 " & gsAppPath & "mscomctl.ocx /s"
Shell "regsvr32 " & gsAppPath & "mscomctl.ocx /u /s"

..if/when an attempt to 'Load' the userform throws an error. This will 
also obviate screwing things up if someone else has registered the 
control. (My intent is that it only be available during runtime of the 
VBA project if not existing on the host machine)...

  loadDF:
    On Error GoTo instOCX
    Set DF = New fDataFormLV
    If Not DF Is Nothing Then DF.Show vbModeless: Exit Sub

  instOCX:
    Call RegOCX
   'Just do once
    If iNum = 0 Then iNum = iNum + 1: Resume loadDF _
                Else MsgBox sMsg, vbCritical

..and on shutdown...

  Call RegOCX(False)

..where RegOCX(Optional LoadOCX As Boolean = True) uses Dir() to see if 
the ocx exists in the path and if not found it returns False. It 
returns True on success.

Just trying to keep it simple...<g>

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-08 14:14 -0400
  Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "MikeD" <nobody@nowhere.edu> - 2014-05-08 15:38 -0400
    Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-08 17:08 -0400
      Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-08 17:19 -0400
  Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? ralph <nt_consulting@yahoo.com> - 2014-05-08 15:30 -0500
    Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? ralph <nt_consulting@yahoo.com> - 2014-05-08 15:49 -0500
    Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-08 17:17 -0400
      Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? ralph <nt_consulting@yahoo.com> - 2014-05-08 21:09 -0500
        Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 00:12 -0400
          Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 08:15 -0400
            Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? ralph <nt_consulting@yahoo.com> - 2014-05-09 16:00 -0500
              Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 18:06 -0400
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 19:26 -0400
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? Deanna Earley <dee.earley@icode.co.uk> - 2014-05-12 09:00 +0100
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-12 18:51 -0400
              Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 19:55 -0400
            Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "MikeD" <nobody@nowhere.edu> - 2014-05-09 18:09 -0400
              Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 18:52 -0400
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 19:48 -0400
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? ralph <nt_consulting@yahoo.com> - 2014-05-09 20:34 -0500
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 22:33 -0400
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "CoderX" <coder@x.com> - 2014-05-12 15:40 -0400
              Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 20:44 -0400
  Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-09 22:47 -0400
    Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-10 19:55 -0400
      Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "Peter T" <askformy@gmail.com> - 2014-05-12 16:19 +0100
        Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-12 19:07 -0400
          Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "Peter T" <askformy@gmail.com> - 2014-05-13 12:38 +0100
            Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-13 15:40 -0400
              Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "Peter T" <askformy@gmail.com> - 2014-05-14 16:40 +0100
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? Deanna Earley <dee.earley@icode.co.uk> - 2014-05-14 17:13 +0100
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "Peter T" <askformy@gmail.com> - 2014-05-14 17:47 +0100
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? Deanna Earley <dee.earley@icode.co.uk> - 2014-05-15 08:59 +0100
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? "Peter T" <askformy@gmail.com> - 2014-05-15 12:55 +0100
                Re: What's the reason for comctl32.dll + comctl32.ocx in Win7  SysWOW64 folder? GS <gs@somewhere.net> - 2014-05-14 13:00 -0400

csiph-web