Winsock.LocalIP won't compile

Posted on 2008-11-06
Last Modified: 2008-11-12

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

Question by:gilalig
    LVL 14

    Expert Comment


    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.



    Author Comment

    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?
    LVL 14

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    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.
    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…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    759 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

    14 Experts available now in Live!

    Get 1:1 Help Now