Solved

Richtx32.ocx and Comctl32.ocx register

Posted on 1998-07-14
2
1,113 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now