PDA

Click to See Complete Forum and Search --> : problem with my program


Pouncer
Oct 1st, 2005, 08:04 AM
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'

Keithuk
Oct 1st, 2005, 08:44 AM
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. :)

Pouncer
Oct 1st, 2005, 09:08 AM
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:\

Keithuk
Oct 1st, 2005, 09:15 AM
Thats an error in your app not the ocx. :)

Harsh Gupta
Oct 1st, 2005, 09:15 AM
try to register through VB.............just add the desired OCX or DLL through Components or Reference box!!!

randem
Oct 1st, 2005, 09:17 AM
Pouncer,

Please read Installation Problems in my signature.

Keithuk
Oct 1st, 2005, 09:18 AM
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. :)

Harsh Gupta
Oct 1st, 2005, 09:40 AM
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!!!

Pouncer
Oct 1st, 2005, 09:54 AM
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 :confused: :(

MartinLiss
Oct 1st, 2005, 09:57 AM
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 :confused: :(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.

Harsh Gupta
Oct 1st, 2005, 09:59 AM
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 :confused: :(
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!!!