Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get cin cout in MFC dialog based application Pin
amitovoip21-Apr-09 22:25
amitovoip21-Apr-09 22:25 
AnswerRe: How to get cin cout in MFC dialog based application Pin
_AnsHUMAN_ 21-Apr-09 22:35
_AnsHUMAN_ 21-Apr-09 22:35 
AnswerRe: How to get cin cout in MFC dialog based application Pin
QuickDeveloper21-Apr-09 22:44
QuickDeveloper21-Apr-09 22:44 
AnswerRe: How to get cin cout in MFC dialog based application Pin
David Crow22-Apr-09 5:40
David Crow22-Apr-09 5:40 
QuestionSize of datatype dependent on OS or Hardware Architecture? Pin
QuickDeveloper21-Apr-09 22:13
QuickDeveloper21-Apr-09 22:13 
AnswerRe: Size of datatype dependent on OS or Hardware Architecture? Pin
Divyang Mithaiwala21-Apr-09 22:22
Divyang Mithaiwala21-Apr-09 22:22 
AnswerRe: Size of datatype dependent on OS or Hardware Architecture? Pin
Iain Clarke, Warrior Programmer21-Apr-09 22:23
Iain Clarke, Warrior Programmer21-Apr-09 22:23 
AnswerRe: Size of datatype dependent on OS or Hardware Architecture? Pin
Stuart Dootson21-Apr-09 22:45
professionalStuart Dootson21-Apr-09 22:45 
QuickDeveloper wrote:
size of datatype C++ is dependant on which of the following ( or on all of them ) ?

1)Operating System
2)Hardware Architecture
3)Compiler


The data-type size is primarily specified by the compiler. The size used by the compiler will be chosen to make implementation of the data-type easy. So, on a 16-bit processor, ints are likely to be 16-bit, while on a 32-bit compiler, they're likely to be 32-bit.

When you get to 64-bit hardware, you have more choices. 32- or 64-bit ints are natively supported, but you'll probably find they choose 32-bit integers because a) that is in general big enough for most applications, and b) 32-bit ints are half the size of 64-bit ints - moving all ints to 64-bit would probably cause space and speed (because you have to read twice as much memory for ints) issues. You still, of course have access to 64-bit ints through __int64 and long long.

QuickDeveloper wrote:
Eg:Does size of int on 64 bit Hardware with 32/64 bit windows varies?


I don't believe so. IIRC, the 64-bit Windows API uses 32-bit integer values and 64-bit pointer values, compared to 32-bit Windows, which uses 32-bit integers and 32-bit pointers.

[bit later]

I've just checked (by compiling with the x86->amd64 cross-compiling version of VC++ and looking at the generated assembler) and VC++ does indeed use 32-bit integers for x86 AND x64.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionGetting information machine in lan by vc++ Pin
ashish8patil21-Apr-09 21:47
ashish8patil21-Apr-09 21:47 
AnswerRe: Getting information machine in lan by vc++ Pin
Iain Clarke, Warrior Programmer21-Apr-09 22:30
Iain Clarke, Warrior Programmer21-Apr-09 22:30 
GeneralRe: Getting information machine in lan by vc++ Pin
ashish8patil21-Apr-09 23:27
ashish8patil21-Apr-09 23:27 
QuestionRe: Getting information machine in lan by vc++ Pin
David Crow22-Apr-09 5:43
David Crow22-Apr-09 5:43 
AnswerRe: Getting information machine in lan by vc++ Pin
ashish8patil22-Apr-09 22:30
ashish8patil22-Apr-09 22:30 
GeneralRe: Getting information machine in lan by vc++ Pin
David Crow23-Apr-09 2:44
David Crow23-Apr-09 2:44 
GeneralRe: Getting information machine in lan by vc++ Pin
ashish8patil24-Apr-09 0:23
ashish8patil24-Apr-09 0:23 
QuestionRe: Getting information machine in lan by vc++ Pin
David Crow24-Apr-09 3:53
David Crow24-Apr-09 3:53 
AnswerRe: Getting information machine in lan by vc++ Pin
ashish8patil25-Apr-09 3:25
ashish8patil25-Apr-09 3:25 
QuestionRe: Getting information machine in lan by vc++ Pin
David Crow25-Apr-09 16:44
David Crow25-Apr-09 16:44 
AnswerRe: Getting information machine in lan by vc++ Pin
ashish8patil26-Apr-09 18:59
ashish8patil26-Apr-09 18:59 
Questioncretate a value under Registry key... Pin
p_196021-Apr-09 21:04
p_196021-Apr-09 21:04 
AnswerRe: cretate a value under Registry key... Pin
Hamid_RT21-Apr-09 21:08
Hamid_RT21-Apr-09 21:08 
GeneralRe: cretate a value under Registry key... Pin
CPallini21-Apr-09 21:13
mveCPallini21-Apr-09 21:13 
AnswerRe: cretate a value under Registry key... Pin
CPallini21-Apr-09 21:11
mveCPallini21-Apr-09 21:11 
GeneralRe: cretate a value under Registry key... Pin
p_196021-Apr-09 21:22
p_196021-Apr-09 21:22 
GeneralRe: cretate a value under Registry key... Pin
CPallini21-Apr-09 21:58
mveCPallini21-Apr-09 21: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.