Solved

Active X Control Distribution

Posted on 2000-03-24
4
197 Views
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.

tvanceplus
0
Comment
Question by:tvanceplus
  • 2
4 Comments
 
LVL 5

Expert Comment

by:vachooho
Comment Utility
possibly your VB control use some VB dlls which are not accesible in runtime.

Try
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
0
 
LVL 1

Author Comment

by:tvanceplus
Comment Utility
I don't think that is the problem. I used depends.exe to make sure I distributed all of its dependencies with the program.
0
 
LVL 5

Expert Comment

by:vachooho
Comment Utility
where did you place those dlls?
Its should be reachable for your app.
0
 

Accepted Solution

by:
sisimon earned 50 total points
Comment Utility
   I also face some of this type problems, this is usully due to the properties of the dialog.Pls set it as "Child".
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…

763 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

6 Experts available now in Live!

Get 1:1 Help Now