Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Active X Control Distribution

Posted on 2000-03-24
Medium Priority
Last Modified: 2013-11-25
I am testing the distribution of a small application. It uses a control that I created in Visual Basic on one of the dialogs. I am distributing this control with the application. I place the OCX file in the system directory and then I register it successfully with regsvr32.exe. But when the application is run, initialization of that dialog box fails when it is called.
It is called with DoModal(). Please help if you can.

Question by:tvanceplus
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

Expert Comment

ID: 2654350
possibly your VB control use some VB dlls which are not accesible in runtime.

copy VB dll into winnt\system32
or Windows\system directory
or add path to your control and VB dlls into environment PATH variable.

Hope this helps

Author Comment

ID: 2654461
I don't think that is the problem. I used depends.exe to make sure I distributed all of its dependencies with the program.

Expert Comment

ID: 2654587
where did you place those dlls?
Its should be reachable for your app.

Accepted Solution

sisimon earned 100 total points
ID: 2656035
   I also face some of this type problems, this is usully due to the properties of the dialog.Pls set it as "Child".

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

610 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