|
-
Oct 1st, 2005, 08:04 AM
#1
Thread Starter
Frenzied Member
problem with my program
when i use the program myself, it works fine.
but when i send it to my friend, he gets
'mswinsk.ocx is missing or invalid'
whats the problem here? is there no way a person can use my exe without vb installed on their pc or something?
Edit*
exact error he is getting when he opens the exe is:
'Component "mswinsck.ocx" or one of its dependencies nor correctly registerd: a file is missing or invalid'
Last edited by Pouncer; Oct 1st, 2005 at 08:08 AM.
-
Oct 1st, 2005, 08:44 AM
#2
Re: problem with my program
Win2k/XP have the basic VB6 RunTime files installed as standard, Win9x/ME don't. They won't normally have any additional dll/ocx's. Put these in the Windows\System folder and you should register them, but it should work without doing this.
I've made apps for WinXP and just put the ocx's in the Windows\System32 folder without registering them and it works perfectly.
Last edited by Keithuk; Oct 1st, 2005 at 08:47 AM.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 1st, 2005, 09:08 AM
#3
Thread Starter
Frenzied Member
Re: problem with my program
ok my friend is using windows 2000 and his system32 is in
C:\WINNT\system32
he put the mswncock.ocx in there and when he open my program he gets
Run Time Error'76': Path not Found
and he is using the D:\ not C:\
-
Oct 1st, 2005, 09:15 AM
#4
Re: problem with my program
Thats an error in your app not the ocx.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 1st, 2005, 09:15 AM
#5
Re: problem with my program
try to register through VB.............just add the desired OCX or DLL through Components or Reference box!!!
-
Oct 1st, 2005, 09:17 AM
#6
Re: problem with my program
Pouncer,
Please read Installation Problems in my signature.
-
Oct 1st, 2005, 09:18 AM
#7
Re: problem with my program
 Originally Posted by Harsh Gupta
try to register through VB.............just add the desired OCX or DLL through Components or Reference box!!!
The app works on Pouncer's comp not on other comps. Thats not much use if the computer you are running the exe on doesn't have VB.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Oct 1st, 2005, 09:40 AM
#8
Re: problem with my program
 Originally Posted by Keithuk
The app works on Pouncer's comp not on other comps. Thats not much use if the computer you are running the exe on doesn't have VB. 
sorry my mistake.....didn't went thru the whole problem!!!
well in that case only proper installtion of the project n the OCX can help!!!
seriously u cannot expect a project made on one PC to run on another one perfectly or flawlessly!!!
-
Oct 1st, 2005, 09:54 AM
#9
Thread Starter
Frenzied Member
Re: problem with my program
 Originally Posted by Pouncer
ok my friend is using windows 2000 and his system32 is in
C:\WINNT\system32
he put the mswncock.ocx in there and when he open my program he gets
Run Time Error'76': Path not Found
and he is using the D:\ not C:\
but now i told my friend to make a folder called windows in his c drive, and then a folder called system32 and put the ocx on system32, he open my program and it now works...
but this is very time consuming to make the folders manually for the user if they dnt exists
-
Oct 1st, 2005, 09:57 AM
#10
Re: problem with my program
 Originally Posted by Pouncer
but now i told my friend to make a folder called windows in his c drive, and then a folder called system32 and put the ocx on system32, he open my program and it now works...
but this is very time consuming to make the folders manually for the user if they dnt exists 
If you use the P&D Wizard, Inno, or other setup program to create a set of installation files, and the have the people install your program, you won't have those problems.
-
Oct 1st, 2005, 09:59 AM
#11
Re: problem with my program
 Originally Posted by Pouncer
but now i told my friend to make a folder called windows in his c drive, and then a folder called system32 and put the ocx on system32, he open my program and it now works...
but this is very time consuming to make the folders manually for the user if they dnt exists 
this is where installation concepts helps you............through it u can automatically create such folders n register your control.............though u have to try before actully distributing, even that install file!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|