Board index » Visual Studio » Structures

Structures

Visual Studio218
Hi all,

i'm writing a vb.net program and i need to talk

with a VXD driver via an unmanaged DLL.

DLL functions have some data strcture like:



typedef struct _sosp_out

{

UINT nSamples;

UINT nAmpiezzaMin;

UINT nFRisonanza;

UINT nPeso;

UINT aSosp[50];

} SOSP_OUT;



How can i define this structure in .NET, since i cannot use an array inside a

structure ?



Thanks a lot,

regards

--

Stefano M


-
 

Re:Structures

"Stefano M" <xxx@yyy.it>schrieb

Quote
Hi all,

i'm writing a vb.net program and i need to talk

with a VXD driver via an unmanaged DLL.

DLL functions have some data strcture like:



typedef struct _sosp_out

{

UINT nSamples;

UINT nAmpiezzaMin;

UINT nFRisonanza;

UINT nPeso;

UINT aSosp[50];

} SOSP_OUT;



How can i define this structure in .NET, since i cannot use an array

inside a structure ?





See Structure "MyArrayStruct":

msdn.microsoft.com/library/en-us/cpguide/html/cpconstructssample.asp">msdn.microsoft.com/library/en-us/cpguide/html/cpconstructssample.asp





--

Armin



How to quote and why:

www.plig.net/nnq/nquote.html">www.plig.net/nnq/nquote.html

www.netmeister.org/news/learn2quote.html">www.netmeister.org/news/learn2quote.html



-

Re:Structures

Hi Stefano,



You can use an arraylist inside a structure.



HTH,



Bernie Yaeger



"Stefano M" <xxx@yyy.it>wrote in message

Quote
Hi all,

i'm writing a vb.net program and i need to talk

with a VXD driver via an unmanaged DLL.

DLL functions have some data strcture like:



typedef struct _sosp_out

{

UINT nSamples;

UINT nAmpiezzaMin;

UINT nFRisonanza;

UINT nPeso;

UINT aSosp[50];

} SOSP_OUT;



How can i define this structure in .NET, since i cannot use an array

inside a

structure ?



Thanks a lot,

regards

--

Stefano M











-

Re:Structures

"Bernie Yaeger" <berniey@cherwellinc.com>schrieb

Quote


You can use an arraylist inside a structure.



No, not if the function expects an array. :-)





--

Armin



How to quote and why:

www.plig.net/nnq/nquote.html">www.plig.net/nnq/nquote.html

www.netmeister.org/news/learn2quote.html">www.netmeister.org/news/learn2quote.html



-

Re:Structures

Hi Armin,



Yes, you're correct.



Bernie



"Armin Zingler" <az.nospam@freenet.de>wrote in message

Quote
"Bernie Yaeger" <berniey@cherwellinc.com>schrieb

>

>You can use an arraylist inside a structure.



No, not if the function expects an array. :-)





--

Armin



How to quote and why:

www.plig.net/nnq/nquote.html">www.plig.net/nnq/nquote.html

www.netmeister.org/news/learn2quote.html">www.netmeister.org/news/learn2quote.html







-

Re:Structures

Thanks a lot for the link !!!

Bye

--

Stefano M







-