Solved

MSWINSCK.OCX and non admin users - PART II

Posted on 2006-06-26
6
836 Views
Last Modified: 2013-11-14
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.
0
Comment
Question by:pat_xiv
6 Comments
 
LVL 12

Expert Comment

by:jkaios
Comment Utility
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
 
LVL 1

Accepted Solution

by:
nicolasn earned 125 total points
Comment Utility
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
 

Author Comment

by:pat_xiv
Comment Utility
jkaios,

The ocx is already registered.

The question is : non admin users cannot register an ocx or a dll...
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:pat_xiv
Comment Utility
well, I will consider using CSocketMaster.

I keep you in touch.

0
 

Author Comment

by:pat_xiv
Comment Utility
Finally, I used CSocketMaster and it works great !

Thank you !
0
 
LVL 5

Expert Comment

by:lunchbyte
Comment Utility
so it was the ocx after all...
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now