Click here to Skip to main content
15,909,896 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Timer Elapsed Event Pin
elcheah18-Jan-06 15:57
elcheah18-Jan-06 15:57 
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 
Thank you for your answer,

I did some test whith a simple C function and I succeed to localize the problem (but not the solution...)

the stuct I used is the following in C :
typedef struct{
int valint;
double valdouble;
char ValString[8];
}t_TestData;

When I call the function in VB I déclare the strcuture like that :
Public Structure t_TestData
Dim valint As Integer
Dim valdouble As Double
<vbfixedarray(8)> Dim Data() As Char
Public Sub Initialize()
ReDim Data(8)
End Sub
End Structure

valint and valdouble are updated correctly but not the Array Data
I call Initialize before calling the C function and I tried with the folowing declarations
Declare Sub TestDll Lib "TestvoidParam.dll" (ByVal t As Integer, ByRef TestData As t_TestData)
or
Declare Sub TestDll Lib "TestvoidParam.dll" (ByVal t As Integer, <marshalas(unmanagedtype.asany)> ByVal TestData As Object)

but it doesn't work, I've got an unknown exception. So the problem is to Get the Data of a fix size array of a structure.

have you got an idea?


Thanks

JP




If the structure is without
AnswerRe: Calling C function in VB.net Pin
Guffa27-Jan-06 7:06
Guffa27-Jan-06 7:06 
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 

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.