Click here to Skip to main content
15,894,720 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Function Pointers in Classes Pin
CPallini22-Apr-09 4:44
mveCPallini22-Apr-09 4:44 
AnswerRe: Function Pointers in Classes Pin
Arsalan Malik23-Apr-09 23:20
Arsalan Malik23-Apr-09 23:20 
QuestionRedraw problem with CRichEditCtrl and CListCtrl edges Pin
David Balažic21-Apr-09 23:24
David Balažic21-Apr-09 23:24 
Questioncode analysis tool. Pin
coding_ram21-Apr-09 23:17
coding_ram21-Apr-09 23:17 
AnswerRe: code analysis tool. Pin
Hamid_RT21-Apr-09 23:49
Hamid_RT21-Apr-09 23:49 
AnswerRe: code analysis tool. Pin
Arsalan Malik22-Apr-09 0:04
Arsalan Malik22-Apr-09 0:04 
GeneralRe: code analysis tool. Pin
coding_ram22-Apr-09 0:07
coding_ram22-Apr-09 0:07 
AnswerRe: code analysis tool. Pin
Fatbuddha 122-Apr-09 0:30
Fatbuddha 122-Apr-09 0:30 
QuestionDownload ActiveX Pin
p_196021-Apr-09 22:56
p_196021-Apr-09 22:56 
AnswerRe: Download ActiveX Pin
Code-o-mat22-Apr-09 0:01
Code-o-mat22-Apr-09 0:01 
QuestionHosting a Java application within an MFC application using JNI Pin
Psyinx21-Apr-09 22:31
Psyinx21-Apr-09 22:31 
AnswerRe: Hosting a Java application within an MFC application using JNI Pin
Cedric Moonen21-Apr-09 22:41
Cedric Moonen21-Apr-09 22:41 
QuestionFolder Time Pin
Davitor21-Apr-09 22:27
Davitor21-Apr-09 22:27 
AnswerRe: Folder Time Pin
_AnsHUMAN_ 21-Apr-09 22:29
_AnsHUMAN_ 21-Apr-09 22:29 
AnswerRe: Folder Time Pin
Stuart Dootson21-Apr-09 22:53
professionalStuart Dootson21-Apr-09 22:53 
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 

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.