Active X Control Distribution

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
LVL 1
tvanceplusAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sisimonConnect With a Mentor Commented:
   I also face some of this type problems, this is usully due to the properties of the dialog.Pls set it as "Child".
0
 
vachoohoCommented:
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
 
tvanceplusAuthor Commented:
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
 
vachoohoCommented:
where did you place those dlls?
Its should be reachable for your app.
0
All Courses

From novice to tech pro — start learning today.