Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[C++] Remote WMI ==> "Access denied" Pin
mocrotronics24-May-06 5:33
mocrotronics24-May-06 5:33 
AnswerRe: [C++] Remote WMI ==> "Access denied" Pin
Sheng Jiang 蒋晟24-May-06 11:16
Sheng Jiang 蒋晟24-May-06 11:16 
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 
I'm confused too. Smile | :)
<blockquote class="FQ"><div class="FQA">bob16972 wrote:</div>int nObjectCount=m_someArray.GetSize();</blockquote>


Are you compiling for 64 bit or 32 bit? Even if you are compiling for 32 bit, GetSize() returns an int and you are assigning that to an int, so there is no potential for truncation. If you are compiling for 64 bit, I can only assume that the the GetSize() method no longer returns an int, but returns some other type. Are there #ifdef's in the CArray header file that show what it returns differently for a 64 bit compile? If there are then you have to put the same kind of #ifdef's for your declarations prior to the assignment call.

But like I said at the start, I'm confused.

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]
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 
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 

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.