Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: INT_PTR Pin
ThatsAlok27-May-05 2:06
ThatsAlok27-May-05 2:06 
GeneralRe: INT_PTR Pin
Bob Stanneveld27-May-05 2:08
Bob Stanneveld27-May-05 2:08 
GeneralRe: INT_PTR Pin
ThatsAlok27-May-05 2:14
ThatsAlok27-May-05 2:14 
GeneralRe: INT_PTR Pin
Bob Stanneveld27-May-05 2:19
Bob Stanneveld27-May-05 2:19 
GeneralRe: INT_PTR Pin
Ryan Binns27-May-05 2:19
Ryan Binns27-May-05 2:19 
GeneralRe: INT_PTR Pin
Bob Stanneveld27-May-05 2:20
Bob Stanneveld27-May-05 2:20 
GeneralRe: INT_PTR Pin
Nemanja Trifunovic27-May-05 5:20
Nemanja Trifunovic27-May-05 5:20 
GeneralRe: INT_PTR Pin
Ryan Binns27-May-05 2:22
Ryan Binns27-May-05 2:22 
IlanTal wrote:
What is an INT_PTR?

As Bob has pointed out, its just an integer, not a pointer to an integer. It's called INT_PTR because it is guaranteed to be the same size as a pointer, no matter what platform you're compiling for. In 32-bit Windows (with 32-bit pointers) it's a 32-bit integer. In 64-bit Windows (with 64-bit pointers) it's a 64-bit pointer.

Whenever you store a pointer as an integer, you should use the INT_PTR type so that your code is portable between 32-bit and 64-bit architectures.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralTo Overload strlen() Pin
Member 184878427-May-05 0:32
Member 184878427-May-05 0:32 
GeneralRe: To Overload strlen() Pin
Ryan Binns27-May-05 2:28
Ryan Binns27-May-05 2:28 
QuestionFile Copy Hook? Pin
Priyank Bolia26-May-05 23:55
Priyank Bolia26-May-05 23:55 
AnswerRe: File Copy Hook? Pin
vikramlinux27-May-05 1:11
vikramlinux27-May-05 1:11 
GeneralRe: File Copy Hook? Pin
Priyank Bolia27-May-05 1:25
Priyank Bolia27-May-05 1:25 
GeneralRe: File Copy Hook? Pin
John M. Drescher27-May-05 1:45
John M. Drescher27-May-05 1:45 
GeneralRe: File Copy Hook? Pin
ThatsAlok27-May-05 1:52
ThatsAlok27-May-05 1:52 
GeneralRe: File Copy Hook? Pin
John M. Drescher27-May-05 4:17
John M. Drescher27-May-05 4:17 
GeneralRe: File Copy Hook? Pin
ThatsAlok27-May-05 18:45
ThatsAlok27-May-05 18:45 
GeneralRe: File Copy Hook? Pin
vikramlinux27-May-05 2:12
vikramlinux27-May-05 2:12 
GeneralRe: File Copy Hook? Pin
Priyank Bolia27-May-05 2:21
Priyank Bolia27-May-05 2:21 
GeneralRe: File Copy Hook? Pin
vikramlinux27-May-05 2:14
vikramlinux27-May-05 2:14 
GeneralRe: File Copy Hook? Pin
Priyank Bolia27-May-05 2:23
Priyank Bolia27-May-05 2:23 
GeneralRe: File Copy Hook? Pin
John M. Drescher27-May-05 4:28
John M. Drescher27-May-05 4:28 
GeneralRe: File Copy Hook? Pin
Priyank Bolia27-May-05 8:47
Priyank Bolia27-May-05 8:47 
GeneralRe: File Copy Hook? Pin
John M. Drescher27-May-05 10:53
John M. Drescher27-May-05 10:53 
GeneralRe: File Copy Hook? Pin
Priyank Bolia28-May-05 2:02
Priyank Bolia28-May-05 2:02 

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.