Click here to Skip to main content
15,895,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionINT_PTR/INT usage confusion Pin
bob1697224-May-06 4:51
bob1697224-May-06 4:51 
AnswerRe: INT_PTR/INT usage confusion Pin
toxcct24-May-06 5:18
toxcct24-May-06 5:18 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 5:27
bob1697224-May-06 5:27 
GeneralRe: INT_PTR/INT usage confusion Pin
toxcct24-May-06 5:50
toxcct24-May-06 5:50 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 6:16
bob1697224-May-06 6:16 
QuestionRe: INT_PTR/INT usage confusion Pin
Chris Meech24-May-06 5:46
Chris Meech24-May-06 5:46 
AnswerRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 6:15
bob1697224-May-06 6:15 
GeneralRe: INT_PTR/INT usage confusion Pin
Chris Meech24-May-06 6:49
Chris Meech24-May-06 6:49 
bob16972 wrote:
On VC++ 2003 it returns an INT_PTR


That's a pretty significant change. Sigh | :sigh: I'm guessing that this means you are given the address of where the size is stored, and thus when the size changes, in effect you will be notified. Regardless of the reason though, I think you need to change your code to
INT_PTR pObjectCount = m_someArray.GetSize();
and that should compile with the option you previously specified and not produce a warning.

Chris Meech

I am Canadian. [heard in a local bar]

The America I believe in has always understood that natural harmony is only one meal away from monkey burgers. [Stan Shannon]

GOOD DAY FOR: Bean counters, as the Australian Taxation Office said that prostitutes and strippers could claim tax deductions for adult toys and sexy lingerie. [Associated Press]
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 7:38
bob1697224-May-06 7:38 
GeneralRe: INT_PTR/INT usage confusion Pin
Zac Howland24-May-06 8:30
Zac Howland24-May-06 8:30 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 9:20
bob1697224-May-06 9:20 
QuestionHow to acquire the Scrolling distance ?? Pin
llp00na24-May-06 4:34
llp00na24-May-06 4:34 
AnswerRe: How to acquire the Scrolling distance ?? Pin
Steve Echols24-May-06 18:35
Steve Echols24-May-06 18:35 
QuestionHelping with including a file :D [modified] Pin
Mahhouraaaaaa24-May-06 4:21
Mahhouraaaaaa24-May-06 4:21 
AnswerRe: Helping with including a file :D [modified] Pin
bob1697224-May-06 5:07
bob1697224-May-06 5:07 
QuestionInternet Explorer History Pin
rajeevktripathi24-May-06 3:53
rajeevktripathi24-May-06 3:53 
AnswerRe: Internet Explorer History Pin
Chris Losinger24-May-06 4:43
professionalChris Losinger24-May-06 4:43 
AnswerRe: Internet Explorer History Pin
David Crow24-May-06 4:50
David Crow24-May-06 4:50 
Questionboost::weak_ptr exception Pin
LionAM24-May-06 3:32
LionAM24-May-06 3:32 
Question(High-color) icon management Pin
Andre xxxxxxx24-May-06 3:24
Andre xxxxxxx24-May-06 3:24 
AnswerRe: (High-color) icon management Pin
grigsoft24-May-06 6:56
grigsoft24-May-06 6:56 
GeneralRe: (High-color) icon management Pin
Andre xxxxxxx24-May-06 9:08
Andre xxxxxxx24-May-06 9:08 
QuestionPassing on varargs Pin
Steve S24-May-06 3:13
Steve S24-May-06 3:13 
AnswerRe: Passing on varargs Pin
Chris Losinger24-May-06 3:21
professionalChris Losinger24-May-06 3:21 
GeneralRe: Passing on varargs Pin
Steve S24-May-06 3:41
Steve S24-May-06 3:41 

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.