Solved

Error when running Visual Basic 5.0 in Windows XP. Pertaining to Winsock

Posted on 2003-11-07
3
504 Views
Last Modified: 2013-11-25
When I run a Viusal Basic 5.0 program that has a Winsock object in it under Windows 2000, it worked fine, but under Windows XP, it result in an error, and the stand alone executable never got started.

------------------------------------------------------------------------

1)
Error when running Visual Basic 5.0 in Windows XP. Pertaining to Winsock object.

"Component mswinsck.ocx not currently registered:file is missing or invalid"
------------------------------------------------------------------------

The Winsock1 object is being called only once in the program.

Private Sub Form_Load()
    'When the statement below is set, the tab number is properly set
    'but it all of the text fields and buttons disappear.
   
    SSTab1.Tab = 0
    Dim Local_IP
       
    Label8.FontUnderline = True
    Call Find_Directory_and_File
   
    Local_IP = Winsock1.LocalIP
    Call Parse_The_PC_IP_Address(Local_IP)
End Sub
------------------------------------------------------------------

2)
A second, but less important question is, when I set the SSTab1.Tab = 0,
The Tab 0 gets the highlight, but all of the objects such as text box, label
and buttons disappear or is covered by the tab 0 which is all grey in color.
How do I fix this ?
0
Comment
Question by:lin100
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9703932
1) did you install your app or just copy the exe?
2) I saw some similar with Excel, it is really weird.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9703982
0
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 50 total points
ID: 9707295
Make sure the machine has mswinsck.ocx in the windows system directory.If not,copy it there and register it using:

regsvr32 mswinsck.ocx

Does the problem with the controls still happen if you put them in a frame on the form,then paste the frame onto Tab0?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SAPE.heur.AE935 Visual Studio 3 38
allswap challenge 6 79
groovy example issue 10 90
Python 3.5.2 32 virtualenv problems 3 2
This article will show, step by step, how to integrate R code into a R Sweave document
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

910 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

23 Experts available now in Live!

Get 1:1 Help Now