Click here to Skip to main content
15,900,457 members
Home / Discussions / C#
   

C#

 
GeneralShortcut Keys Pin
egyseiko15-Jan-05 22:49
egyseiko15-Jan-05 22:49 
GeneralRe: Shortcut Keys Pin
alexiev_nikolay16-Jan-05 0:03
alexiev_nikolay16-Jan-05 0:03 
GeneralRe: Shortcut Keys Pin
egyseiko16-Jan-05 1:38
egyseiko16-Jan-05 1:38 
GeneralRe: Shortcut Keys Pin
Mazdak16-Jan-05 5:35
Mazdak16-Jan-05 5:35 
Generalrelative XML file path Pin
asiddiqi@bankalfalah.com15-Jan-05 21:03
sussasiddiqi@bankalfalah.com15-Jan-05 21:03 
GeneralRe: relative XML file path Pin
Heath Stewart16-Jan-05 9:39
protectorHeath Stewart16-Jan-05 9:39 
GeneralRe: relative XML file path Pin
Gregg Holter16-Jan-05 16:44
Gregg Holter16-Jan-05 16:44 
GeneralMarshal Structs Pin
Anonymous15-Jan-05 12:51
Anonymous15-Jan-05 12:51 
I have a problem with this code:

------------------------------------------------------------

[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct StructA
{
public int MyVariable;
}

[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)]
public struct StructB
{
[System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 3)]
public StructA[] MyArray; // size must be 3;
}

------------------------------------------------------------

If I take Marshal.SizeOf(StructB) I have this error: Type can not be marshaled as an unmanaged structure; no meaningful size or offset can be computed. So, what can I do to fix the problem?
GeneralRe: Marshal Structs Pin
Heath Stewart16-Jan-05 9:46
protectorHeath Stewart16-Jan-05 9:46 
Generalloading an xml file Pin
John L. DeVito15-Jan-05 12:48
professionalJohn L. DeVito15-Jan-05 12:48 
GeneralRe: loading an xml file Pin
Robert Rohde15-Jan-05 19:02
Robert Rohde15-Jan-05 19:02 
GeneralParse RTF to HTML Pin
vargasbo15-Jan-05 11:08
vargasbo15-Jan-05 11:08 
GeneralRe: Parse RTF to HTML Pin
Heath Stewart16-Jan-05 9:23
protectorHeath Stewart16-Jan-05 9:23 
GeneralRe: Parse RTF to HTML Pin
Anonymous21-Jan-05 9:34
Anonymous21-Jan-05 9:34 
GeneralRe: Parse RTF to HTML Pin
Heath Stewart21-Jan-05 13:14
protectorHeath Stewart21-Jan-05 13:14 
GeneralAlpha Channel in DirectX Pin
Rob Tomson15-Jan-05 9:35
Rob Tomson15-Jan-05 9:35 
GeneralRe: Alpha Channel in DirectX Pin
Heath Stewart16-Jan-05 9:15
protectorHeath Stewart16-Jan-05 9:15 
GeneralUse Graphics classes in a class library Pin
Anonymous15-Jan-05 9:09
Anonymous15-Jan-05 9:09 
GeneralRe: Use Graphics classes in a class library Pin
leppie15-Jan-05 9:17
leppie15-Jan-05 9:17 
GeneralRe: Use Graphics classes in a class library Pin
Skynyrd15-Jan-05 13:00
Skynyrd15-Jan-05 13:00 
QuestionMonitor Sharing? Pin
Rob Tomson15-Jan-05 8:43
Rob Tomson15-Jan-05 8:43 
AnswerRe: Monitor Sharing? Pin
Colin Angus Mackay15-Jan-05 11:47
Colin Angus Mackay15-Jan-05 11:47 
AnswerRe: Monitor Sharing? Pin
Robert Rohde15-Jan-05 19:05
Robert Rohde15-Jan-05 19:05 
GeneralDown Arrow Key Pin
Umair Ahmad khan15-Jan-05 8:34
Umair Ahmad khan15-Jan-05 8:34 
GeneralRe: Down Arrow Key Pin
Peter Molnar15-Jan-05 13:55
Peter Molnar15-Jan-05 13:55 

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.