Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
AnswerRe: Error while Extracting Files in zip folder Pin
OriginalGriff3-Jan-11 22:40
mveOriginalGriff3-Jan-11 22:40 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk3-Jan-11 23:34
arun_pk3-Jan-11 23:34 
GeneralRe: Error while Extracting Files in zip folder Pin
OriginalGriff3-Jan-11 23:38
mveOriginalGriff3-Jan-11 23:38 
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 
Hi Dave,

I'm more than a bit confused by your code. If you want to pass a struct that contains an array, as in this native fellow:
struct myStruct {
   ...
   int myIntegers[];
   ...
}

then the native side will prefer the dimension of the array to be known at compile time (so it can work out all the offsets); and the managed side must do special things to smash the array inside the struct, rather than just holding a reference. That is what
[MarshalAs(UnmanagedType.ByValArray, SizeConst=7)]
int[] myIntegers;

would do. However your code seems quite different...

Confused | :confused:
Luc Pattyn [Forum Guidelines] [My Articles] [My CP bug tracking] Nil Volentibus Arduum
Season's Greetings to all CPians.


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 
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 

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.