Solved

Richtx32.ocx and Comctl32.ocx register

Posted on 1998-07-14
2
1,126 Views
Last Modified: 2008-02-01
How can I register richtx32.ocx and comctl32.ocx with ODE Tools?
I use these controls with an application made in Access 97, but when I run the setup (made with ODE) this controls don't run properly... I think that I don't make a correct setup program... How can I include the register of these controls in my setup?

Thanks
0
Comment
Question by:abautistat
2 Comments
 
LVL 1

Accepted Solution

by:
DennisH earned 100 total points
ID: 1976694
What we've done to get around this problem is build a small Visual Basic EXE that we load on the user's system during installation that calls the Shell function and runs regsvr32 to register the OCX's. The core code looks like this:

    '   Register each OCX
    '   Build the run string
    strSystemDirectory = "C:\WINDOWS\SYSTEM\"
    strApplicationDirectory = "C:\WINDOWS\SYSTEM\"
    strAppName = "COMCTL32.OCX"
    strRun = strSystemDirectory & "regsvr32.exe /s " & _ strApplicationDirectory & strAppName
   
    '   Run Regsvr32
    dReturn = Shell(strRun, vbMinimizedNoFocus)
    DoEvents
    '   If dReturn = 0 then Shell failed

Note that you will have to copy the VB virtual machine file to the user's system as well (see the VB documentation for more info)  It's very fast and very reliable.
0
 
LVL 1

Expert Comment

by:pglick
ID: 1976695
Consult Microsoft Knowledge Base article Q163183 titled:  "ODE97: Supporting Files for ActiveX Controls in ODE"

This lists out the supporting files that you need to include in your ODE setup in addition to the ocx's that you have already mentioned.

I ran into a similar problem and this solved it for me.

Good luck
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question