Solved

Richtx32.ocx and Comctl32.ocx register

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

705 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

21 Experts available now in Live!

Get 1:1 Help Now