[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Richtx32.ocx and Comctl32.ocx register

Posted on 1998-07-14
2
Medium Priority
?
1,193 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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.

656 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