Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anyone wanna see Pin
Nnamdi Onyeyiri2-Aug-02 7:34
Nnamdi Onyeyiri2-Aug-02 7:34 
GeneralRe: Anyone wanna see Pin
James T. Johnson2-Aug-02 14:29
James T. Johnson2-Aug-02 14:29 
GeneralRe: Anyone wanna see Pin
Nnamdi Onyeyiri2-Aug-02 23:07
Nnamdi Onyeyiri2-Aug-02 23:07 
QuestionLoaded Assemblies? Pin
Johnny Zee1-Aug-02 8:09
sussJohnny Zee1-Aug-02 8:09 
AnswerRe: Loaded Assemblies? Pin
leppie1-Aug-02 8:18
leppie1-Aug-02 8:18 
GeneralTCPClient and TCPListener Pin
Michael P Butler1-Aug-02 5:12
Michael P Butler1-Aug-02 5:12 
GeneralRe: TCPClient and TCPListener Pin
jparsons1-Aug-02 6:04
jparsons1-Aug-02 6:04 
GeneralWrite a struct to a file... Pin
Daniel Strigl1-Aug-02 4:35
Daniel Strigl1-Aug-02 4:35 
How can I write a user defined struct (like the following struct) in binary form to a file?
<br />
[StructLayout(LayoutKind.Sequential)]   <br />
public struct BITMAPFILEHEADER <br />
{<br />
    public ushort bfType; <br />
    public uint   bfSize; <br />
    public ushort bfReserved1; <br />
    public ushort bfReserved2; <br />
    public uint   bfOffBits; <br />
}<br />

And how can I write the data of a memory block (the only thing I have is the the "IntPtr") in binary form to a file?

IntPtr p --> file

Thanks, Daniel.
GeneralRe: Write a struct to a file... Pin
Andy Smith1-Aug-02 6:33
Andy Smith1-Aug-02 6:33 
GeneralRe: Write a struct to a file... Pin
Nnamdi Onyeyiri1-Aug-02 8:05
Nnamdi Onyeyiri1-Aug-02 8:05 
GeneralRe: Write a struct to a file... Pin
Daniel Strigl1-Aug-02 8:49
Daniel Strigl1-Aug-02 8:49 
GeneralRe: Write a struct to a file... Pin
Nnamdi Onyeyiri1-Aug-02 8:50
Nnamdi Onyeyiri1-Aug-02 8:50 
GeneralRe: Write a struct to a file... Pin
Eric Gunnerson (msft)1-Aug-02 11:04
Eric Gunnerson (msft)1-Aug-02 11:04 
GeneralCustom control question Pin
pankajdaga1-Aug-02 3:42
pankajdaga1-Aug-02 3:42 
GeneralRe: Custom control question Pin
leppie1-Aug-02 4:07
leppie1-Aug-02 4:07 
GeneralRe: Custom control question Pin
pankajdaga1-Aug-02 4:15
pankajdaga1-Aug-02 4:15 
GeneralRe: Custom control question Pin
leppie1-Aug-02 4:24
leppie1-Aug-02 4:24 
GeneralRe: Custom control question Pin
pankajdaga1-Aug-02 4:56
pankajdaga1-Aug-02 4:56 
GeneralRe: Custom control question Pin
Nnamdi Onyeyiri1-Aug-02 8:02
Nnamdi Onyeyiri1-Aug-02 8:02 
GeneralRe: Custom control question Pin
Firoz1-Aug-02 20:28
Firoz1-Aug-02 20:28 
GeneralEasy question Pin
Alexandru Savescu1-Aug-02 3:07
Alexandru Savescu1-Aug-02 3:07 
GeneralRe: Easy question Pin
Christian Graus1-Aug-02 3:16
protectorChristian Graus1-Aug-02 3:16 
GeneralRe: Easy question Pin
Alexandru Savescu1-Aug-02 3:19
Alexandru Savescu1-Aug-02 3:19 
GeneralRe: Easy question Pin
Christian Graus1-Aug-02 3:29
protectorChristian Graus1-Aug-02 3:29 
GeneralRe: Easy question Pin
Alexandru Savescu1-Aug-02 3:56
Alexandru Savescu1-Aug-02 3:56 

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.