Click here to Skip to main content
15,902,888 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looking for good C# book suggestions Pin
Colin Angus Mackay21-Dec-03 15:00
Colin Angus Mackay21-Dec-03 15:00 
GeneralRe: Looking for good C# book suggestions Pin
Nick Seng21-Dec-03 16:11
Nick Seng21-Dec-03 16:11 
GeneralRe: Looking for good C# book suggestions Pin
Charlie Williams21-Dec-03 17:26
Charlie Williams21-Dec-03 17:26 
GeneralDial_up connection Pin
Member 74005421-Dec-03 10:13
Member 74005421-Dec-03 10:13 
GeneralRe: Dial_up connection Pin
Heath Stewart21-Dec-03 11:58
protectorHeath Stewart21-Dec-03 11:58 
QuestionWhy is BOOL in C, cast to int in C#? Pin
Tristan Rhodes21-Dec-03 0:27
Tristan Rhodes21-Dec-03 0:27 
AnswerRe: Why is BOOL in C, cast to int in C#? Pin
leppie21-Dec-03 1:09
leppie21-Dec-03 1:09 
AnswerRe: Why is BOOL in C, cast to int in C#? Pin
Ken Galer22-Dec-03 3:10
Ken Galer22-Dec-03 3:10 
I'm guessing but suspect that a Bool is an int because an int is 32 bits and that is the size that a 32 bit machine can handle with the most efficiency.

It would take more instructions to deal with the Bool if it were a byte.

I work on an embedded project using a Motorola 68K (16bit) and a Bool is defined as an int that is also 16 bits. On 8 bit controllers a Bool, if defined at all, is a char or 8 bits. On a few controllers such as the 8051 types where memory is very limited, they have memory locations that only consist of single bits and can be read or written in a single instruction. In that case a Bool is defined as a bit.



Ken Galer
Electrical Engineer
Preferred Utilities Corp.
Danbury, CT 06810
GeneralEnumFORMATETC method translation Pin
Tristan Rhodes21-Dec-03 0:14
Tristan Rhodes21-Dec-03 0:14 
GeneralRe: EnumFORMATETC method translation Pin
leppie21-Dec-03 1:13
leppie21-Dec-03 1:13 
GeneralRe: EnumFORMATETC method translation Pin
Tristan Rhodes21-Dec-03 1:53
Tristan Rhodes21-Dec-03 1:53 
GeneralRe: EnumFORMATETC method translation Pin
23-Dec-03 2:03
suss23-Dec-03 2:03 
GeneralRe: EnumFORMATETC method translation Pin
leppie23-Dec-03 8:34
leppie23-Dec-03 8:34 
Generalin, out, in/out query Pin
Tristan Rhodes20-Dec-03 23:51
Tristan Rhodes20-Dec-03 23:51 
GeneralRe: in, out, in/out query Pin
Jörgen Sigvardsson21-Dec-03 1:18
Jörgen Sigvardsson21-Dec-03 1:18 
GeneralFormatetc Dummy Entry in decompiler Pin
Tristan Rhodes20-Dec-03 23:30
Tristan Rhodes20-Dec-03 23:30 
QuestionHow to open a word or excel document in my C# windows form Pin
nichen100120-Dec-03 18:23
nichen100120-Dec-03 18:23 
AnswerRe: How to open a word or excel document in my C# windows form Pin
J. Dunlap20-Dec-03 18:39
J. Dunlap20-Dec-03 18:39 
GeneralRe: How to open a word or excel document in my C# windows form Pin
nichen100120-Dec-03 18:56
nichen100120-Dec-03 18:56 
GeneralRe: How to open a word or excel document in my C# windows form Pin
Heath Stewart20-Dec-03 20:42
protectorHeath Stewart20-Dec-03 20:42 
GeneralRe: How to open a word or excel document in my C# windows form Pin
hazzem elrefai20-Dec-03 21:24
hazzem elrefai20-Dec-03 21:24 
GeneralRe: How to open a word or excel document in my C# windows form Pin
Heath Stewart20-Dec-03 21:27
protectorHeath Stewart20-Dec-03 21:27 
GeneralRe: How to open a word or excel document in my C# windows form Pin
hazzem elrefai20-Dec-03 21:30
hazzem elrefai20-Dec-03 21:30 
GeneralRe: How to open a word or excel document in my C# windows form Pin
Heath Stewart20-Dec-03 21:32
protectorHeath Stewart20-Dec-03 21:32 
GeneralRe: How to open a word or excel document in my C# windows form Pin
hazzem elrefai20-Dec-03 21:43
hazzem elrefai20-Dec-03 21:43 

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.