MSWINSCK.OCX and non admin users - PART II

Hi,

I am distributing a VB6 application using mswinsck.ocx. The software works fine with machines under Windows XP with every users BUT under Windows 98 and 2000, NON ADMIN users always get the error 339 (Component 'MSWINSCK.OCX' or one of its dependencies not currently registered: a file is missing or invalid)

If I do a "RUN AS" Administrator, it works.

The ocx is registered and is present under c:\winnt\system32 and under the application path.

Non-admin users cannot register a ocx themself.

PS: I am using Visual Studio Installer (.msi)

Thank you for your help.
pat_xivAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nicolasnConnect With a Mentor Commented:
Hello Pat,

Certain control require licencing in addition to being correctly registered.  These controls work fine on development machines where the licence is installed with Visual Studio, but then seem to mysteriously fail on the deployment machine.  I suspect a problem with the licencing for the control, possibly permissions on the lpk file that only allow admins to "see" it?

Take a look at a previous reply of mine detailing how to do this in this topic: http://www.experts-exchange.com/Programming/Q_20741350.html#9391824

I know yours is a different control, but the same requirements apply.

You may also want to consider using Emiliano Scavuzzo's CSocketMaster replacement for the MSWINSCK control.  You will find it here: http://www.geocities.com/anshoku/

Nicolas
0
 
jkaiosIT DirectorCommented:
Try to register the MSWINSCK.OCX on the Windows 98 computers using the "Regsvr32.exe" program.

1.  Run the command prompt
2.  Go the the directory that contains the MSWINSCK.OCX file (usually "C:\Windows\System32" in Windows 9x and XP and "C:\WINNT\System32" in WinNT)
3.  Type REGSVR32 MSWINSCK.OCX and press the ENTER

After you have typed in the 3rd step, you should see a message box confirming the result.

Also, make sure the file exists on the computer you are trying to run your program on.  If not, copy that file to the SYSTEM32
directory on the target machine and then do the above steps.  It should work.
0
 
pat_xivAuthor Commented:
jkaios,

The ocx is already registered.

The question is : non admin users cannot register an ocx or a dll...
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
pat_xivAuthor Commented:
well, I will consider using CSocketMaster.

I keep you in touch.

0
 
pat_xivAuthor Commented:
Finally, I used CSocketMaster and it works great !

Thank you !
0
 
lunchbyteCommented:
so it was the ocx after all...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.