Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB 6.0 >>> VB.NET / June 2008

Tip: Looking for answers? Try searching our database.

VB6 upgradation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chaitanya Kumar CVSS - 05 Jun 2008 07:10 GMT
Hi

Ihave problem while using WSAStartup method of Windows API in vb.net
This is the code i have used .
<Code>
Private Const WS_VERSION_REQD As Short = &H101S
Private Structure WSADATA
       Dim wVersion As Short
       Dim wHighVersion As Short
       <VBFixedArray(WSADescription_Len)> Dim szDescription() As Byte
       <VBFixedArray(WSASYS_Status_Len)> Dim szSystemStatus() As Byte
       Dim iMaxSockets As Short
       Dim iMaxUdpDg As Short
       Dim lpszVendorInfo As Integer

        Public Sub Initialize()
           ReDim szDescription(WSADescription_Len)
           ReDim szSystemStatus(WSASYS_Status_Len)
       End Sub
   End Structure
Dim WSAD As New WSADATA
Dim iReturn As Short

iReturn = WSAStartup(WS_VERSION_REQD, WSAD)
</Code>
Herfried K. Wagner [MVP] - 06 Jun 2008 22:32 GMT
"Chaitanya Kumar CVSS" <ChaitanyaKumarCVSS@discussions.microsoft.com>
schrieb:
> Ihave problem while using WSAStartup method of Windows API in vb.net
> This is the code i have used .

I suggest to post the function declaration.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.