Click here to Skip to main content
15,886,857 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionjpeg/png/tiff libs in VS 2005 linker errors. Pin
CodeGoose24-May-06 7:45
CodeGoose24-May-06 7:45 
AnswerRe: jpeg/png/tiff libs in VS 2005 linker errors. Pin
David Crow24-May-06 8:23
David Crow24-May-06 8:23 
AnswerRe: jpeg/png/tiff libs in VS 2005 linker errors. Pin
Chris Losinger24-May-06 8:23
professionalChris Losinger24-May-06 8:23 
GeneralRe: jpeg/png/tiff libs in VS 2005 linker errors. Pin
CodeGoose24-May-06 8:48
CodeGoose24-May-06 8:48 
QuestionIs it too late to write a book on how to do Owner-Draw components using Win32 API/MFC/WTL? Pin
Han Bo Sun24-May-06 7:36
professionalHan Bo Sun24-May-06 7:36 
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 
I'm using the MFC collection data types in a VC++ 2003 application and am getting the "conversion from 'INT_PTR' to 'int', possible loss of data" when calling collection functions like GetSize() and such.

I know these "Warnings" are 64-bit Portability warnings that occur when using the default /Wp64 command line option. I am attempting to accomodate the warnings and adapt my code so that it will compile fine in a 64-bit environment (within reason)

Original code: (Used to work fine in Visual C++ 6.0)

///////////////////////////////////////
// Member variable
CArray<int,int&> m_someArray;

// typical usage
int nObjectCount=m_someArray.GetSize();
///////////////////////////////////////

My question is...

Which type (or typedef) should I use for my offset (int, INT, INT_PTR)?

int nObjectCount=(int)someArray.GetSize(); // OR
INT nObjectCount=(INT)someArray.GetSize(); // OR
INT_PTR nObjectCount=(INT_PTR)someArray.GetSize();

Thanks in advance for any guidance.

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

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.