Click here to Skip to main content
15,913,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 16:23
Joshua Quick18-Jan-06 16:23 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 18:03
elcheah18-Jan-06 18:03 
GeneralRe: Timer Elapsed Event Pin
Joshua Quick18-Jan-06 18:23
Joshua Quick18-Jan-06 18:23 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 21:17
elcheah18-Jan-06 21:17 
QuestionCalling C function in VB.net Pin
jpvillemagne17-Jan-06 22:04
jpvillemagne17-Jan-06 22:04 
AnswerRe: Calling C function in VB.net Pin
Guffa18-Jan-06 1:08
Guffa18-Jan-06 1:08 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne26-Jan-06 0:28
jpvillemagne26-Jan-06 0:28 
AnswerRe: Calling C function in VB.net Pin
Guffa27-Jan-06 7:06
Guffa27-Jan-06 7:06 
There are no fixed size arrays in .NET. Your Data member is a reference to an array object, and the ReDim statement is really:

Data = New Char(8)

If the C structure contains the array as a value type, the structure contains the character data itself, not a reference.

Test if declaring characters as value types in the structire gets you any closer:

Dim Data0 as Char
Dim Data1 as Char
Dim Data2 as Char
Dim Data3 as Char
Dim Data4 as Char
Dim Data5 as Char
Dim Data6 as Char
Dim Data7 as Char

Another thing that might cause you problem is if the char datatype is not a unicode character as in .NET. Then you have to declare the data as bytes and convert it to characters.

---
b { font-weight: normal; }

GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 21:21
jpvillemagne1-Feb-06 21:21 
AnswerRe: Calling C function in VB.net Pin
Guffa1-Feb-06 21:40
Guffa1-Feb-06 21:40 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 23:10
jpvillemagne1-Feb-06 23:10 
GeneralRe: Calling C function in VB.net Pin
jpvillemagne1-Feb-06 23:14
jpvillemagne1-Feb-06 23:14 
QuestionUrgently required Pin
Osama12317-Jan-06 21:10
Osama12317-Jan-06 21:10 
AnswerRe: Urgently required Pin
Dave Kreskowiak18-Jan-06 4:13
mveDave Kreskowiak18-Jan-06 4:13 
QuestionHow do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike17-Jan-06 21:09
nzmike17-Jan-06 21:09 
AnswerRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak18-Jan-06 4:11
mveDave Kreskowiak18-Jan-06 4:11 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike18-Jan-06 14:50
nzmike18-Jan-06 14:50 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak18-Jan-06 15:46
mveDave Kreskowiak18-Jan-06 15:46 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike18-Jan-06 17:54
nzmike18-Jan-06 17:54 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak19-Jan-06 9:18
mveDave Kreskowiak19-Jan-06 9:18 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike19-Jan-06 9:56
nzmike19-Jan-06 9:56 
QuestionCan we have Style Sheet in VB.net Pin
wEb GuRu...17-Jan-06 21:07
wEb GuRu...17-Jan-06 21:07 
AnswerRe: Can we have Style Sheet in VB.net Pin
Colin Angus Mackay17-Jan-06 23:20
Colin Angus Mackay17-Jan-06 23:20 
AnswerRe: Can we have Style Sheet in VB.net Pin
Dave Kreskowiak18-Jan-06 4:06
mveDave Kreskowiak18-Jan-06 4:06 
QuestionTextWidth Method Pin
Joy Anne17-Jan-06 20:43
Joy Anne17-Jan-06 20:43 

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.