?
Solved

Winsock.LocalIP won't compile

Posted on 2008-11-06
3
Medium Priority
?
233 Views
Last Modified: 2008-11-12
Hello,

When compiling my vbp file into an exe the compilation stops because of:
Winsock.LocalIP
What is missing from the project for this command of Winsock  that is preventing the compilation.

Thanks!
0
Comment
Question by:gilalig
  • 2
3 Comments
 
LVL 14

Expert Comment

by:Matti
ID: 22899113
Hi!

Try this kind:

Dim s$
s = Winsock1.LocalIP
MsgBox s

You need put that value to a variable or use it directly in some functionality.
It will return String.


Matti

0
 

Author Comment

by:gilalig
ID: 22902185
Of course, the command is used in order to get the value to be placed as a string into a caption on the form . My problem is that it doesn't compile. Is there some reference that should be used or something else missing?
0
 
LVL 14

Accepted Solution

by:
Matti earned 2000 total points
ID: 22902206
Well there is a component Microsoft Winsock Control 6.0
That needs to be in the project. That is included in a professional version of Visual Basic

There is no extra references, you can press F2 in VB IDE that launch Object breowser the MS winsocklib is there.

Matti
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

840 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