registering VB4.0 OCX's in XP?


C

Cookie

I have a program that requires these OCX's and DLL's:
COMDLG16.OCX, THREED16.OCX, OC25.DLL, VB40016.DLL
These are all in the programs path.

Program is written in VB 4.0
Program must be runned on XP Home Edition.

When starting the application it gives the error:
Can't load (or register) custom control: "COMDLG16.OCX"

When I try \path\regsrv32 \programpath\COMDLG16.OCX
XP gives me this error:
The file "COMDLG16.OCX" is not an executable file and there is
no registration-helper registered.
(this is translated from dutch)
Same error if I try unregister the OCX (regsrv32 -u)

How can I solve this?
Thanks

Cookie

--
\|||/
(. .)
*--------ooO-(_)-Ooo--------*
| |
| (e-mail address removed) |
| |
*---------------------------*
 
Ad

Advertisements

D

David Candy

You need to run regsvr16, no longer included in windows. It on the VB CD, maybe the programmer included it on your install media.
 
C

Cookie

David said:
You need to run regsvr16, no longer included in windows. It on the VB CD, maybe the programmer included it on your install media.
Downloaded it from internet (several sources. After comparing the EXE was the
same for all I've found).
Tried it and it gave an error:
LoadLibrary ("C:\programpath\COMDLG16.OCX") failed. The Return value was 2.

So this didn't work for me...
:(
 
Ad

Advertisements

C

Cookie

Cookie said:
Downloaded it from internet (several sources. After comparing the EXE
was the same for all I've found).
Tried it and it gave an error:
LoadLibrary ("C:\programpath\COMDLG16.OCX") failed. The Return value was 2.

So this didn't work for me...
:(
It worked...
Problem was: it couldn't handle long file names...
When I used the 8.3 notation it worked and the program is up and running...

Thanks...

Cookie

--
\|||/
(. .)
*--------ooO-(_)-Ooo--------*
| |
| (e-mail address removed) |
| |
*---------------------------*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top