Click here to Skip to main content
15,913,361 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataBindings Pin
Ista2-Sep-03 16:56
Ista2-Sep-03 16:56 
GeneralAuthenticating to a web site Pin
roberthanacek2-Sep-03 10:24
roberthanacek2-Sep-03 10:24 
GeneralRe: Authenticating to a web site Pin
leppie2-Sep-03 12:09
leppie2-Sep-03 12:09 
GeneralSingleCall Objects not Disposing Pin
0siris2-Sep-03 8:03
0siris2-Sep-03 8:03 
GeneralOverride the asterisk and row arrow in datagrid Pin
Ista2-Sep-03 7:02
Ista2-Sep-03 7:02 
General(Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 5:59
Frank Olorin Rizzi2-Sep-03 5:59 
GeneralRe: (Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 6:07
Frank Olorin Rizzi2-Sep-03 6:07 
GeneralRe: (Rich) Text Box and cursor position Pin
.gonad2-Sep-03 6:47
.gonad2-Sep-03 6:47 
QuestionCan you use functions like sprintf in c# Pin
IrishSonic2-Sep-03 5:59
IrishSonic2-Sep-03 5:59 
AnswerRe: Can you use functions like sprintf in c# Pin
flipdoubt2-Sep-03 7:04
flipdoubt2-Sep-03 7:04 
AnswerRe: Can you use functions like sprintf in c# Pin
leppie2-Sep-03 12:14
leppie2-Sep-03 12:14 
GeneralThanks, will check it out. Pin
IrishSonic2-Sep-03 22:06
IrishSonic2-Sep-03 22:06 
GeneralOffice Xp Task Panel Pin
Sanjay Rastogi2-Sep-03 3:15
Sanjay Rastogi2-Sep-03 3:15 
GeneralSingleCall and Threads Forever Pin
Member 4744652-Sep-03 2:32
Member 4744652-Sep-03 2:32 
GeneralWin32 API Wrapper Pin
vikramlinux1-Sep-03 23:34
vikramlinux1-Sep-03 23:34 
GeneralRe: Win32 API Wrapper Pin
J. Dunlap2-Sep-03 9:20
J. Dunlap2-Sep-03 9:20 
GeneralTrouble with 'set' accessor Pin
mikeirwin1-Sep-03 20:01
mikeirwin1-Sep-03 20:01 
GeneralRe: Trouble with 'set' accessor Pin
Ista2-Sep-03 7:01
Ista2-Sep-03 7:01 
GeneralRe: Trouble with 'set' accessor Pin
mikeirwin2-Sep-03 9:21
mikeirwin2-Sep-03 9:21 
GeneralWriting and reading binary data Pin
padcom131-Sep-03 14:53
padcom131-Sep-03 14:53 
GeneralRe: Writing and reading binary data Pin
James T. Johnson1-Sep-03 16:57
James T. Johnson1-Sep-03 16:57 
GeneralRe: Writing and reading binary data Pin
James T. Johnson1-Sep-03 17:08
James T. Johnson1-Sep-03 17:08 
GeneralRe: Writing and reading binary data Pin
padcom132-Sep-03 5:01
padcom132-Sep-03 5:01 
GeneralRe: Writing and reading binary data Pin
Eric Gunnerson (msft)2-Sep-03 9:48
Eric Gunnerson (msft)2-Sep-03 9:48 
Matthias,

If you want to do it the old way, you can define a structure that mirrors what you want, and then use unsafe to copy the data from a byte array to the struct:

MyStruct myStruct;

byte[] data = readdata(sizeof(myStruct));

fixed (byte* pData = data)
{
myStruct = *((MyStruct*) pData);
}

This will require unsafe code and full trust when you execute, and works only if you don't have any reference types (like strings or arrays) within the struct.
QuestionHow to call a form using reflection Pin
Ista1-Sep-03 14:20
Ista1-Sep-03 14:20 

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.