Click here to Skip to main content
15,907,236 members
Home / Discussions / C#
   

C#

 
GeneralRe: finding the process's HWND Pin
leppie19-Jun-02 10:50
leppie19-Jun-02 10:50 
GeneralExporting functions Pin
leppie18-Jun-02 23:56
leppie18-Jun-02 23:56 
GeneralRe: Exporting functions Pin
Feng Qin19-Jun-02 1:01
Feng Qin19-Jun-02 1:01 
GeneralRe: Exporting functions Pin
leppie19-Jun-02 1:22
leppie19-Jun-02 1:22 
GeneralRe: Exporting functions Pin
Nish Nishant19-Jun-02 1:30
sitebuilderNish Nishant19-Jun-02 1:30 
GeneralRe: Exporting functions Pin
leppie19-Jun-02 2:04
leppie19-Jun-02 2:04 
GeneralRe: Exporting functions Pin
leppie19-Jun-02 11:20
leppie19-Jun-02 11:20 
GeneralRe: Exporting functions Pin
Nish Nishant19-Jun-02 11:34
sitebuilderNish Nishant19-Jun-02 11:34 
GeneralRe: Exporting functions Pin
leppie19-Jun-02 20:31
leppie19-Jun-02 20:31 
GeneralRe: Exporting functions Pin
Michael P Butler19-Jun-02 1:42
Michael P Butler19-Jun-02 1:42 
QuestionF:\Dev\ASP.NET\dw\CRC32.cs(87): Operator '<<' cannot be applied to operands of type 'int' and 'uint' ?? Pin
Todd Smith18-Jun-02 16:49
Todd Smith18-Jun-02 16:49 
AnswerRe: F:\Dev\ASP.NET\dw\CRC32.cs(87): Operator '<<' cannot be applied to operands of type 'int' and 'uint' ?? Pin
Rüpel18-Jun-02 20:54
Rüpel18-Jun-02 20:54 
AnswerRe: F:\Dev\ASP.NET\dw\CRC32.cs(87): Operator '<<' cannot be applied to operands of type 'int' and 'uint' ?? Pin
Feng Qin19-Jun-02 0:56
Feng Qin19-Jun-02 0:56 
GeneralRe: F:\Dev\ASP.NET\dw\CRC32.cs(87): Operator '<<' cannot be applied to operands of type 'int' and 'uint' ?? Pin
Todd Smith19-Jun-02 6:38
Todd Smith19-Jun-02 6:38 
GeneralMCSD 70-316 Pin
kasturirawat18-Jun-02 11:26
kasturirawat18-Jun-02 11:26 
GeneralRe: MCSD 70-316 Pin
Feng Qin19-Jun-02 1:06
Feng Qin19-Jun-02 1:06 
GeneralRe: MCSD 70-316 Pin
Not Active19-Jun-02 8:35
mentorNot Active19-Jun-02 8:35 
GeneralCenter text in a RichTextBox Pin
kyledunn18-Jun-02 10:30
kyledunn18-Jun-02 10:30 
GeneralRe: Center text in a RichTextBox Pin
John Mautari19-Jun-02 21:13
John Mautari19-Jun-02 21:13 
GeneralRe: Center text in a RichTextBox Pin
John Mautari19-Jun-02 21:17
John Mautari19-Jun-02 21:17 
GeneralRe: Center text in a RichTextBox Pin
kyledunn20-Jun-02 1:00
kyledunn20-Jun-02 1:00 
Generalderived webservice causes exception Pin
Steve Severance18-Jun-02 6:35
Steve Severance18-Jun-02 6:35 
QuestionHow to use BinaryWriter to write memory? Pin
Zombies with Coffee, LLC18-Jun-02 5:45
professionalZombies with Coffee, LLC18-Jun-02 5:45 
My latest place that I'm stuck...

I call a function using DllImport that returns a pointer to some memory. How do I now write it to a file? The Write method doesn't take a pointer.

Thanks guys!

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

IntPtr pOutputBuffer = IntPtr.Zero;
IntPtr pInputBuffer = bmData.Scan0;

int iResult = wsq_compress_raw( pInputBuffer, ..., ref pOutputBuffer, ... );

FileStream pStream = new FileStream( strPathName, FileMode.Create, FileAccess.Write );
BinaryWriter pWriter = new BinaryWriter( pStream );

pWriter.Write( pOutputBuffer, 0, iCompressFileSize ); // Error

pWriter.Close( );
pStream.Close( );

AnswerRe: How to use BinaryWriter to write memory? Pin
18-Jun-02 6:11
suss18-Jun-02 6:11 
GeneralRe: How to use BinaryWriter to write memory? Pin
Zombies with Coffee, LLC18-Jun-02 6:23
professionalZombies with Coffee, LLC18-Jun-02 6:23 

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.