?
Solved

Richtx32.ocx and Comctl32.ocx register

Posted on 1998-07-14
2
Medium Priority
?
1,174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

743 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