Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: using winuser.h Pin
Dave Kreskowiak15-Jun-04 2:52
mveDave Kreskowiak15-Jun-04 2:52 
GeneralRe: using winuser.h Pin
eggie515-Jun-04 5:53
eggie515-Jun-04 5:53 
GeneralRe: using winuser.h Pin
Dave Kreskowiak15-Jun-04 14:49
mveDave Kreskowiak15-Jun-04 14:49 
GeneralAdding .wmf to an RTF file... Pin
sachinkalse14-Jun-04 14:54
sachinkalse14-Jun-04 14:54 
GeneralRe: Adding .wmf to an RTF file... Pin
Heath Stewart15-Jun-04 2:42
protectorHeath Stewart15-Jun-04 2:42 
GeneralRe: Adding .wmf to an RTF file... Pin
sachinkalse15-Jun-04 15:06
sachinkalse15-Jun-04 15:06 
GeneralRe: Adding .wmf to an RTF file... Pin
Heath Stewart16-Jun-04 3:09
protectorHeath Stewart16-Jun-04 3:09 
GeneralRe: Adding .wmf to an RTF file... Pin
sachinkalse16-Jun-04 14:45
sachinkalse16-Jun-04 14:45 
GeneralThree classes Pin
IamADotNetGuy14-Jun-04 12:08
IamADotNetGuy14-Jun-04 12:08 
GeneralRe: Three classes Pin
Daniel Turini14-Jun-04 12:26
Daniel Turini14-Jun-04 12:26 
GeneralRe: Three classes Pin
Steven Campbell14-Jun-04 18:42
Steven Campbell14-Jun-04 18:42 
GeneralProbability library Pin
machocr14-Jun-04 12:07
machocr14-Jun-04 12:07 
GeneralRe: Probability library Pin
Stefan Troschuetz14-Jun-04 21:42
Stefan Troschuetz14-Jun-04 21:42 
GeneralRe: Probability library Pin
machocr18-Jun-04 5:15
machocr18-Jun-04 5:15 
GeneralRe: Probability library Pin
Stefan Troschuetz18-Jun-04 5:24
Stefan Troschuetz18-Jun-04 5:24 
GeneralOT: Hello Pin
ChasP14-Jun-04 11:26
ChasP14-Jun-04 11:26 
GeneralAnti-alians Metafile Pin
Werdna14-Jun-04 11:04
Werdna14-Jun-04 11:04 
GeneralRe: Anti-alians Metafile Pin
Alexandre GRANVAUD15-Feb-10 1:59
Alexandre GRANVAUD15-Feb-10 1:59 
GeneralExact strings Pin
Chris Korzeniowski14-Jun-04 9:57
Chris Korzeniowski14-Jun-04 9:57 
GeneralRe: Exact strings Pin
Steven Campbell14-Jun-04 10:12
Steven Campbell14-Jun-04 10:12 
GeneralRe: Exact strings Pin
Chris Korzeniowski14-Jun-04 11:15
Chris Korzeniowski14-Jun-04 11:15 
GeneralRe: Exact strings Pin
Heath Stewart14-Jun-04 11:28
protectorHeath Stewart14-Jun-04 11:28 
See the System.Text.Encoding class, and use the correct encoding.

Also, keep in mind this isn't a text file you're creating. The line endings are wrong (should be Environment.NewLine, but can be others except the null-terminator throws it out of whack). It you want a text file, use a TextWriter derivative. Unless you're trying to write a CSV, you can always base64-encode (or whatever encoding you want, but the .NET FCL doesn't have support for others at this time) binary data. You can use the Convert.ToBase64String or Convert.ToBase64CharArray methods, or the ToBase64Transform for streaming support (in this case you'll need to use a StreamWriter to get access to the string, or use a MemoryStream temporarily then use the Encoding class to write it to your text file).

 

Microsoft MVP, Visual C#
My Articles
GeneralWindows Service App Pin
japanreddy14-Jun-04 9:55
japanreddy14-Jun-04 9:55 
GeneralRe: Windows Service App Pin
Heath Stewart14-Jun-04 10:16
protectorHeath Stewart14-Jun-04 10:16 
Generalneed help on adding C++ project Pin
skinnyreptile14-Jun-04 9:37
skinnyreptile14-Jun-04 9:37 

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.