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


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

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

From ralph <nt_consulting@yahoo.com>
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?
Message-ID <3rdqm9d50044t9oouthecueof72ji9061q@4ax.com> (permalink)
References (1 earlier) <ejpnm99ela8r9ht4oqdfit61ia6ffaep14@4ax.com> <lkgs91$9r9$1@dont-email.me> <h0dom9lka7bj8ncacji49e8qhrb0ch16o1@4ax.com> <lkhkjf$io7$1@dont-email.me> <lkigu0$kfp$1@dont-email.me>
Organization Forte - www.forteinc.com
Date 2014-05-09 16:00 -0500

Cross-posted to 2 groups.

Show all headers | View raw


On Fri, 09 May 2014 08:15:56 -0400, GS <gs@somewhere.net> wrote:

>After much googling I'm probably going to go with...
>
>Shell "regsvr32 " & gsAppPath & "mscomctl.ocx /s"
>Shell "regsvr32 " & gsAppPath & "mscomctl.ocx /u /s"
>

The location "gsAppPath" is a tad disturbing. Is this a placeholder or
an actual new location (copy)?

>..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>

It sounds like you are developing a shrink-wrap App for release into
the wild. If so, while I can appreciate this may seem simpler, you
might want to reconsider and use a proven Side-by-Side technology
(Manifest, Reg-Free). It will actually be 'simpler' in the long run.

Of course these particular components are not a typical case, since if
the target is using Office and mostly Microsoft solutions one is
practically guaranteed they will be there and registered - thus extra
finagling need ever be done. The downside is if they are already
present then it is likely they are heavily shared. Your hijacking the
'global' registration may work well on your test box and for the
single-tasking user, but is likely to fail at the most inopportune
time on a busy box.

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