Click here to Skip to main content
16,011,849 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to develop an sql connection string from a text or xml file: how do i? Pin
JustmeNick30-Dec-06 9:01
JustmeNick30-Dec-06 9:01 
GeneralRe: how to develop an sql connection string from a text or xml file: how do i? Pin
Colin Angus Mackay30-Dec-06 12:34
Colin Angus Mackay30-Dec-06 12:34 
GeneralThanks bro...Re: how to develop an sql connection string from a text or xml file: how do i? Pin
JustmeNick31-Dec-06 7:21
JustmeNick31-Dec-06 7:21 
GeneralRe: Thanks bro...Re: how to develop an sql connection string from a text or xml file: how do i? Pin
Colin Angus Mackay31-Dec-06 8:03
Colin Angus Mackay31-Dec-06 8:03 
AnswerRe: how to develop an sql connection string from a text or xml file: how do i? Pin
Paul Conrad30-Dec-06 8:21
professionalPaul Conrad30-Dec-06 8:21 
GeneralRe: how to develop an sql connection string from a text or xml file: how do i? Pin
JustmeNick30-Dec-06 9:00
JustmeNick30-Dec-06 9:00 
GeneralRe: how to develop an sql connection string from a text or xml file: how do i? Pin
Paul Conrad30-Dec-06 10:17
professionalPaul Conrad30-Dec-06 10:17 
QuestionMarshal vs2005 problem please help Pin
carl_sti29-Dec-06 22:11
carl_sti29-Dec-06 22:11 
Cannot marshal field 'table' of type 'MIB_TCPTABLE': Invalid managed/unmanaged type combination (Arrays fields must be paired with ByValArray or SafeArray).

i got this error when trying to call function GetTcpTable.. see the following code..

[module declaration]

Structure MIB_TCPROW
Dim dwState As Long
Dim dwLocalAddr As Long
Dim dwLocalPort As Long
Dim dwRemoteAddr As Long
Dim dwRemotePort As Long
End Structure

<structlayout(layoutkind.sequential, charset:="CharSet.Ansi)"> Structure MIB_TCPTABLE
<marshalas(unmanagedtype.byvaltstr, sizeconst:="100)"> Dim table() As MIB_TCPROW
Dim dwNumEntries As Long
End Structure
Public v_MIB_TCPTABLE As MIB_TCPTABLE

Declare Function GetTcpTable Lib "IPhlpAPI.dll" (ByVal pTcpTable As MIB_TCPTABLE, ByVal pdwSize As Long, ByVal bOrder As Long) As Long


[form code]

Dim tcpt As MIB_TCPTABLE
Dim l As Long
Dim x As Integer
Dim i As Integer
Dim RemA As String
Dim LocP As String
Dim RemP As String
Dim state As Integer

l = Len(v_MIB_TCPTABLE)
GetTcpTable(tcpt, l, 0)
x = tcpt.dwNumEntries


after calling GetTcpTable function i got exeption as mention above

please help
AnswerRe: Marshal vs2005 problem please help Pin
Dave Kreskowiak30-Dec-06 4:37
mveDave Kreskowiak30-Dec-06 4:37 
QuestionHelp me to solve this Web application prb. Pin
ro_pim29-Dec-06 21:25
ro_pim29-Dec-06 21:25 
AnswerRe: Help me to solve this Web application prb. Pin
Dave Kreskowiak30-Dec-06 4:25
mveDave Kreskowiak30-Dec-06 4:25 
GeneralRe: Help me to solve this Web application prb. Pin
ro_pim1-Jan-07 21:17
ro_pim1-Jan-07 21:17 
GeneralRe: Help me to solve this Web application prb. Pin
Dave Kreskowiak2-Jan-07 3:18
mveDave Kreskowiak2-Jan-07 3:18 
GeneralRe: Help me to solve this Web application prb. Pin
ro_pim2-Jan-07 23:37
ro_pim2-Jan-07 23:37 
GeneralRe: Help me to solve this Web application prb. Pin
Dave Kreskowiak3-Jan-07 1:55
mveDave Kreskowiak3-Jan-07 1:55 
GeneralRe: Help me to solve this Web application prb. Pin
ro_pim3-Jan-07 22:54
ro_pim3-Jan-07 22:54 
QuestionAlternate control for DSO Framer in .net Pin
indian14329-Dec-06 19:03
indian14329-Dec-06 19:03 
AnswerRe: Alternate control for DSO Framer in .net Pin
Dave Kreskowiak30-Dec-06 4:22
mveDave Kreskowiak30-Dec-06 4:22 
GeneralRe: Alternate control for DSO Framer in .net Pin
Paul Conrad30-Dec-06 12:05
professionalPaul Conrad30-Dec-06 12:05 
GeneralRe: Alternate control for DSO Framer in .net Pin
Dave Kreskowiak30-Dec-06 17:10
mveDave Kreskowiak30-Dec-06 17:10 
GeneralRe: Alternate control for DSO Framer in .net Pin
Paul Conrad30-Dec-06 17:29
professionalPaul Conrad30-Dec-06 17:29 
Questioncombo box in vb.net 2005 Pin
amaneet29-Dec-06 17:55
amaneet29-Dec-06 17:55 
AnswerRe: combo box in vb.net 2005 Pin
Paul Conrad29-Dec-06 17:58
professionalPaul Conrad29-Dec-06 17:58 
AnswerRe: combo box in vb.net 2005 Pin
The ANZAC30-Dec-06 15:58
The ANZAC30-Dec-06 15:58 
QuestionScrolling code in Visual Basic 6 Pin
DA_Loring29-Dec-06 16:58
DA_Loring29-Dec-06 16:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.