Click here to Skip to main content
16,009,391 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk3-Jan-11 23:54
arun_pk3-Jan-11 23:54 
GeneralRe: Error while Extracting Files in zip folder Pin
OriginalGriff4-Jan-11 2:06
mveOriginalGriff4-Jan-11 2:06 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk4-Jan-11 17:38
arun_pk4-Jan-11 17:38 
QuestionP/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 11:10
professionalDaveyM693-Jan-11 11:10 
AnswerRe: P/Invoke an array that is a field in a struct. Pin
Luc Pattyn3-Jan-11 11:35
sitebuilderLuc Pattyn3-Jan-11 11:35 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 11:59
professionalDaveyM693-Jan-11 11:59 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
Luc Pattyn3-Jan-11 12:06
sitebuilderLuc Pattyn3-Jan-11 12:06 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 12:11
professionalDaveyM693-Jan-11 12:11 
This is the function:
C
void SomeFunction(INT * lpSomeTypeArray);

This is the typedef:
C
typedef INT SomeTypeArray[128];


I want to simulate the typedef by creating a struct - SomeTypeArry, and each element would logically be SomeType (a wrapper around int) - enforcing the 128 element size is the main problem.

How does the StructLayoutAttribute work with classes? If I could use a class then I can create my own default constructor - but then passing the class instance would result in the class instance reference being passed rather than the first field (the inner array reference type)? Just thinking out aloud here - need to investigate!
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: P/Invoke an array that is a field in a struct. Pin
Luc Pattyn3-Jan-11 12:31
sitebuilderLuc Pattyn3-Jan-11 12:31 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 12:36
professionalDaveyM693-Jan-11 12:36 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 12:33
professionalDaveyM693-Jan-11 12:33 
AnswerRe: P/Invoke an array that is a field in a struct. Pin
_Erik_4-Jan-11 6:02
_Erik_4-Jan-11 6:02 
Questioncheck credentials on remote machine Pin
User 73794393-Jan-11 10:14
User 73794393-Jan-11 10:14 
QuestionPipe operator Pin
William Winner3-Jan-11 8:41
William Winner3-Jan-11 8:41 
AnswerRe: Pipe operator Pin
Ian Shlasko3-Jan-11 9:12
Ian Shlasko3-Jan-11 9:12 
GeneralRe: Pipe operator Pin
William Winner3-Jan-11 10:14
William Winner3-Jan-11 10:14 
GeneralRe: Pipe operator Pin
PIEBALDconsult3-Jan-11 11:45
mvePIEBALDconsult3-Jan-11 11:45 
GeneralRe: Pipe operator Pin
Ian Shlasko3-Jan-11 11:56
Ian Shlasko3-Jan-11 11:56 
GeneralRe: Pipe operator Pin
AspDotNetDev3-Jan-11 13:40
protectorAspDotNetDev3-Jan-11 13:40 
GeneralRe: Pipe operator Pin
PIEBALDconsult3-Jan-11 14:22
mvePIEBALDconsult3-Jan-11 14:22 
GeneralRe: Pipe operator Pin
Ian Shlasko3-Jan-11 15:58
Ian Shlasko3-Jan-11 15:58 
GeneralRe: Pipe operator Pin
AspDotNetDev4-Jan-11 20:35
protectorAspDotNetDev4-Jan-11 20:35 
GeneralRe: Pipe operator Pin
AspDotNetDev20-Jan-11 14:05
protectorAspDotNetDev20-Jan-11 14:05 
AnswerRe: Pipe operator Pin
Luc Pattyn3-Jan-11 9:12
sitebuilderLuc Pattyn3-Jan-11 9:12 
GeneralRe: Pipe operator Pin
GlobX3-Jan-11 19:41
GlobX3-Jan-11 19:41 

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.