Results 1 to 11 of 11

Thread: problem with my program

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    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.

  2. #2
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    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:\

  4. #4
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    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.

  5. #5
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: problem with my program

    try to register through VB.............just add the desired OCX or DLL through Components or Reference box!!!
    Show Appreciation. Rate Posts.

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: problem with my program

    Pouncer,

    Please read Installation Problems in my signature.

  7. #7
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: problem with my program

    Quote 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.

  8. #8
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: problem with my program

    Quote 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!!!
    Show Appreciation. Rate Posts.

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Re: problem with my program

    Quote 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

  10. #10
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: problem with my program

    Quote 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.

  11. #11
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: problem with my program

    Quote 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!!!
    Show Appreciation. Rate Posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width