Click here to Skip to main content
15,887,249 members
Home / Discussions / C#
   

C#

 
AnswerRe: Error while declaring Interfaces regarding HRESULT Pin
Ben Fair29-Dec-09 3:58
Ben Fair29-Dec-09 3:58 
QuestionChanging registry settings through .Net app Pin
Anindya Chatterjee28-Dec-09 17:02
Anindya Chatterjee28-Dec-09 17:02 
AnswerRe: Changing registry settings through .Net app Pin
Giorgi Dalakishvili28-Dec-09 19:02
mentorGiorgi Dalakishvili28-Dec-09 19:02 
GeneralRe: Changing registry settings through .Net app Pin
Anindya Chatterjee29-Dec-09 5:33
Anindya Chatterjee29-Dec-09 5:33 
QuestionHelp in calling a Delegate from Library Pin
MAW3028-Dec-09 15:07
MAW3028-Dec-09 15:07 
AnswerRe: Help in calling a Delegate from Library Pin
Luc Pattyn28-Dec-09 15:31
sitebuilderLuc Pattyn28-Dec-09 15:31 
QuestionIs there a way to write an bit to a binary file (NOT a byte) in C# ? [modified] Pin
Alex Manolescu28-Dec-09 13:26
Alex Manolescu28-Dec-09 13:26 
AnswerRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
harold aptroot28-Dec-09 13:33
harold aptroot28-Dec-09 13:33 
oldsellerros wrote:
1. Why is that ?? Can anyone explain to me this phenomenon ??

It's lazy and writing a whole byte. It could save up bools in batches of 8 and flush them when there are 8 or when something else is written, but they just didn't make it like that.
oldsellerros wrote:
2. Can I occure the same amount of bytes using the bits ?

Could you try to translate that again, maybe using a different translator?
oldsellerros wrote:
3. Afther that may I recive a code sample on how this can be done? I mean: how can I write bits to a binary file?

It has been done countless times before, just search codeproject/google for "bitstream C#" or something like that. Or you could make one yourself, just collect bits until you have 8 of them and then write them all at once in a byte. The exact details will depend on whether you want bytes/ints/etc to be byte-aligned or not
NewsRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
Alex Manolescu28-Dec-09 13:58
Alex Manolescu28-Dec-09 13:58 
GeneralRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
harold aptroot28-Dec-09 14:17
harold aptroot28-Dec-09 14:17 
GeneralRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
Alex Manolescu28-Dec-09 14:24
Alex Manolescu28-Dec-09 14:24 
GeneralRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
harold aptroot28-Dec-09 14:58
harold aptroot28-Dec-09 14:58 
GeneralRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
Alex Manolescu28-Dec-09 21:25
Alex Manolescu28-Dec-09 21:25 
AnswerRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? PinPopular
Luc Pattyn28-Dec-09 13:57
sitebuilderLuc Pattyn28-Dec-09 13:57 
NewsRe: Is there a way to write an bit to a binary file (NOT a byte) in C# ? Pin
Alex Manolescu28-Dec-09 14:00
Alex Manolescu28-Dec-09 14:00 
QuestionClass with parameter of type Pin
Jeroen De Dauw28-Dec-09 12:30
Jeroen De Dauw28-Dec-09 12:30 
AnswerRe: Class with parameter of type Pin
Luc Pattyn28-Dec-09 12:35
sitebuilderLuc Pattyn28-Dec-09 12:35 
GeneralRe: Class with parameter of type Pin
Jeroen De Dauw28-Dec-09 13:16
Jeroen De Dauw28-Dec-09 13:16 
GeneralRe: Class with parameter of type Pin
Luc Pattyn28-Dec-09 13:18
sitebuilderLuc Pattyn28-Dec-09 13:18 
GeneralRe: Class with parameter of type Pin
Jeroen De Dauw28-Dec-09 13:39
Jeroen De Dauw28-Dec-09 13:39 
GeneralRe: Class with parameter of type Pin
Luc Pattyn28-Dec-09 13:46
sitebuilderLuc Pattyn28-Dec-09 13:46 
GeneralRe: Class with parameter of type Pin
Jeroen De Dauw28-Dec-09 23:44
Jeroen De Dauw28-Dec-09 23:44 
QuestionReading in Unicode text Pin
elmernite28-Dec-09 10:48
elmernite28-Dec-09 10:48 
AnswerRe: Reading in Unicode text Pin
Luc Pattyn28-Dec-09 11:15
sitebuilderLuc Pattyn28-Dec-09 11:15 
QuestionRe: Reading in Unicode text [modified] Pin
elmernite29-Dec-09 3:58
elmernite29-Dec-09 3:58 

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.