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

C#

 
QuestionUrgent : dll function? Pin
E6AD12-Sep-05 4:16
E6AD12-Sep-05 4:16 
Questionpopup window Pin
malak nour12-Sep-05 4:10
malak nour12-Sep-05 4:10 
QuestionGet index of the Column in dataset Pin
zaboboa12-Sep-05 3:42
zaboboa12-Sep-05 3:42 
AnswerRe: Get index of the Column in dataset Pin
KaptinKrunch12-Sep-05 8:41
KaptinKrunch12-Sep-05 8:41 
AnswerRe: Get index of the Column in dataset Pin
miah alom12-Sep-05 9:04
miah alom12-Sep-05 9:04 
AnswerRe: Get index of the Column in dataset Pin
Tigerkatze13-Sep-05 22:43
Tigerkatze13-Sep-05 22:43 
QuestionPreviewWord Pin
Anonymous12-Sep-05 3:15
Anonymous12-Sep-05 3:15 
AnswerRe: PreviewWord Pin
Mohamad Al Husseiny12-Sep-05 10:18
Mohamad Al Husseiny12-Sep-05 10:18 
QuestionIActiveDesktop Pin
Anonymous12-Sep-05 2:48
Anonymous12-Sep-05 2:48 
AnswerRe: IActiveDesktop Pin
Mohamad Al Husseiny12-Sep-05 10:14
Mohamad Al Husseiny12-Sep-05 10:14 
QuestionAccess create table from the app ... Pin
Sharpoverride12-Sep-05 2:45
Sharpoverride12-Sep-05 2:45 
AnswerRe: Access create table from the app ... Pin
Guffa12-Sep-05 3:09
Guffa12-Sep-05 3:09 
QuestionOpenFile and SaveFile dialogs change the current directory. Pin
Sharpoverride12-Sep-05 2:41
Sharpoverride12-Sep-05 2:41 
AnswerRe: OpenFile and SaveFile dialogs change the current directory. Pin
S. Senthil Kumar12-Sep-05 4:01
S. Senthil Kumar12-Sep-05 4:01 
AnswerRe: OpenFile and SaveFile dialogs change the current directory. Pin
Dave Kreskowiak12-Sep-05 5:52
mveDave Kreskowiak12-Sep-05 5:52 
AnswerRe: OpenFile and SaveFile dialogs change the current directory. Pin
Large Data File13-Sep-05 22:14
Large Data File13-Sep-05 22:14 
Questionpinvoke a C++ struct to C# Pin
Thomas van Veen12-Sep-05 2:27
Thomas van Veen12-Sep-05 2:27 
AnswerRe: pinvoke a C++ struct to C# Pin
Andy Moore12-Sep-05 13:00
Andy Moore12-Sep-05 13:00 
Tom,

You would do this

[StructLayout(LayoutKind.Explicit)]<br />
public struct _IMAGE_SECTION_HEADER<br />
{<br />
    [FieldOffset(0)]<br />
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = IMAGE_SIZEOF_SHORT_NAME)]<br />
    public byte[] Name;<br />
<br />
    [FieldOffset(IMAGE_SIZEOF_SHORT_NAME)]<br />
    public int PhysicalAddress;<br />
<br />
    [FieldOffset(IMAGE_SIZEOF_SHORT_NAME)]<br />
    public int VirtualSize;<br />
<br />
    ...<br />
<br />
}


You basically put the members of the union at the same offset in the structure.

I hope this helps.



Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
Question[Message Deleted] Pin
sahithya harsha12-Sep-05 2:24
sahithya harsha12-Sep-05 2:24 
AnswerRe: help me plz.... Pin
Dave Kreskowiak12-Sep-05 6:02
mveDave Kreskowiak12-Sep-05 6:02 
General[Message Deleted] Pin
sahithya harsha12-Sep-05 13:42
sahithya harsha12-Sep-05 13:42 
GeneralRe: help me plz.... Pin
Dave Kreskowiak12-Sep-05 15:46
mveDave Kreskowiak12-Sep-05 15:46 
QuestionHi , Is there any way to Get HTTP Headers of a Page other then HttpWebRequest Pin
Tariq Rahim12-Sep-05 2:01
Tariq Rahim12-Sep-05 2:01 
AnswerRe: Hi , Is there any way to Get HTTP Headers of a Page other then HttpWebRequest Pin
Guffa12-Sep-05 3:40
Guffa12-Sep-05 3:40 
GeneralRe: Hi , Is there any way to Get HTTP Headers of a Page other then HttpWebRequest Pin
Tariq Rahim12-Sep-05 3:54
Tariq Rahim12-Sep-05 3:54 

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.