Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
AnswerRe: The Mouse??? Pin
Stefan Troschuetz19-May-05 21:58
Stefan Troschuetz19-May-05 21:58 
GeneralVertically sizing RichEdit to match text Pin
tbrewer19-May-05 12:03
tbrewer19-May-05 12:03 
QuestionKelly Blue Book API? Pin
DeepToot19-May-05 11:10
DeepToot19-May-05 11:10 
AnswerRe: Kelly Blue Book API? Pin
rudy.net19-May-05 18:26
rudy.net19-May-05 18:26 
GeneralRe: Kelly Blue Book API? Pin
DeepToot20-May-05 3:22
DeepToot20-May-05 3:22 
GeneralActive Direectory question Pin
joe_coolish19-May-05 10:49
joe_coolish19-May-05 10:49 
GeneralRe: Active Direectory question Pin
joe_coolish20-May-05 9:49
joe_coolish20-May-05 9:49 
GeneralMarshal Deeply Nested Struct Problem! Pin
jinzhecheng19-May-05 10:31
jinzhecheng19-May-05 10:31 
// the original c++ has those struct:

typedef struct
{
long id;
} StructA;

typedef struct
{
long price
StructA[4] idArray
}StructB


typedef struct
{
long date;
StructB priceArray

}StructC

// a function use those struct

void foo(StructC* quote)

//=============================================
// c# correspoding type
//=============================================
[StructLayout(LayoutKind.Sequential)]
struct StructA;
{
int id;
}

[StructLayout(LayoutKind.Sequential)]
struct StructB
{
long price
[MarshalAs(UnmanagedType.ByValArray,SizeConst=4 )]
StructA[] idArray
}

[StructLayout(LayoutKind.Sequential)]
struct StructC
{
long date;
StructB priceArray

}
// c# function
void foo(ref StructC quote)


It always complain StructB doesnt have layout info...
stuck for whole day
, really need help.Cry | :((

GeneralRe: Marshal Deeply Nested Struct Problem! Pin
jinzhecheng19-May-05 11:04
jinzhecheng19-May-05 11:04 
GeneralRe: Marshal Deeply Nested Struct Problem! Pin
rudy.net19-May-05 18:50
rudy.net19-May-05 18:50 
GeneralRe: Marshal Deeply Nested Struct Problem! Pin
leppie19-May-05 21:09
leppie19-May-05 21:09 
GeneralGet Specific Line From RichTextBox Pin
pessen19-May-05 9:22
pessen19-May-05 9:22 
GeneralRe: Get Specific Line From RichTextBox Pin
leppie19-May-05 10:02
leppie19-May-05 10:02 
GeneralInsert String array into an SQL DB Pin
epfuller19-May-05 8:47
epfuller19-May-05 8:47 
GeneralRe: Insert String array into an SQL DB Pin
MoustafaS19-May-05 10:43
MoustafaS19-May-05 10:43 
GeneralRe: Insert String array into an SQL DB Pin
epfuller19-May-05 11:46
epfuller19-May-05 11:46 
GeneralRe: Insert String array into an SQL DB Pin
MoustafaS19-May-05 15:40
MoustafaS19-May-05 15:40 
GeneralRe: Insert String array into an SQL DB Pin
epfuller20-May-05 2:34
epfuller20-May-05 2:34 
GeneralVS.net 2003 Pin
Anonymous19-May-05 7:53
Anonymous19-May-05 7:53 
GeneralRe: VS.net 2003 Pin
Judah Gabriel Himango19-May-05 8:24
sponsorJudah Gabriel Himango19-May-05 8:24 
GeneralLCID in C# Pin
ziczaczoom200419-May-05 7:43
ziczaczoom200419-May-05 7:43 
GeneralRe: LCID in C# Pin
Judah Gabriel Himango19-May-05 8:19
sponsorJudah Gabriel Himango19-May-05 8:19 
GeneralRe: LCID in C# Pin
ziczaczoom200419-May-05 9:23
ziczaczoom200419-May-05 9:23 
GeneralRe: LCID in C# Pin
Judah Gabriel Himango19-May-05 9:39
sponsorJudah Gabriel Himango19-May-05 9:39 
GeneralAudio overlay in c# Pin
russler19-May-05 7:17
russler19-May-05 7:17 

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.