469,267 Members | 1,056 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

Registering VB4 OCX's in XP?

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--------*
| |
| co****@yucom.be |
| |
*---------------------------*

Jul 17 '05 #1
4 15524
unfortunately there's no miracle solution...
vb4 came in 16 and 32 bits...if you're not using third party controls you
should be able to bring your 16 bit project to 32 bits and then you should
be able to register your OCX's in XP....XP and 16 bits is a bad idea to
begin with :-).

Once converted to 32 bits, things should go smoothly.
--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Cookie" <co****@yucom.be> wrote in message
news:3F**************@yucom.be...
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--------*
| |
| co****@yucom.be |
| |
*---------------------------*

Jul 17 '05 #2
Try using the 32 bit version of the ocx

"Cookie" <co****@yucom.be> wrote in message
news:3F**************@yucom.be...
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--------*
| |
| co****@yucom.be |
| |
*---------------------------*

Jul 17 '05 #3
Mike Curry wrote:
Try using the 32 bit version of the ocx


doesn't help...
BTW: it is solved already:
I had to use regsrv16 instead of regsrv32
.....doh...

Cookie

--
\|||/
(. .)
*--------ooO-(_)-Ooo--------*
| |
| co****@yucom.be |
| |
*---------------------------*

Jul 17 '05 #4
Stephane Richard wrote:
unfortunately there's no miracle solution...
vb4 came in 16 and 32 bits...if you're not using third party controls you
should be able to bring your 16 bit project to 32 bits and then you should
be able to register your OCX's in XP....XP and 16 bits is a bad idea to
begin with :-).

Once converted to 32 bits, things should go smoothly.


It's not my project so don't have to source to recompile...
It's solved by using regsrv16 instead of regsrv32
Thanks anyway...

--
\|||/
(. .)
*--------ooO-(_)-Ooo--------*
| |
| co****@yucom.be |
| |
*---------------------------*

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Stangonline.com | last post: by
3 posts views Thread by Jeff Johnson | last post: by
reply views Thread by John Coffey | last post: by
1 post views Thread by Chris Petchey | last post: by
2 posts views Thread by linuxfedora | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.