Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: (const char*)this == this Pin
WernerP27-Oct-05 22:11
WernerP27-Oct-05 22:11 
AnswerRe: (const char*)this == this Pin
BadKarma27-Oct-05 1:41
BadKarma27-Oct-05 1:41 
AnswerRe: (const char*)this == this Pin
BadKarma27-Oct-05 2:34
BadKarma27-Oct-05 2:34 
GeneralRe: (const char*)this == this Pin
WernerP27-Oct-05 22:19
WernerP27-Oct-05 22:19 
GeneralRe: (const char*)this == this Pin
WernerP27-Oct-05 2:42
WernerP27-Oct-05 2:42 
QuestionSwitch views inside ChildFrm Pin
LiYS26-Oct-05 22:38
LiYS26-Oct-05 22:38 
QuestionTruncation Pin
Raza568026-Oct-05 22:33
Raza568026-Oct-05 22:33 
AnswerRe: Truncation Pin
Cedric Moonen26-Oct-05 22:41
Cedric Moonen26-Oct-05 22:41 
That's perfectly normal: your compiler doesn't know what is the value contained in your Const_int64 variable ! So it just warns you that you are copying this value into a long that is shorter so a loss of data may occur.
To get rid of the warning, make an explicit cast:

Const_int64 Var1 = ....;<br />
long Var2 = (long)Var1;


In this case, you explicitly tell the compiler you know what you are doing Wink | ;)
AnswerRe: Truncation Pin
kakan27-Oct-05 0:51
professionalkakan27-Oct-05 0:51 
QuestionXp Like ScrollBar in VC++ 6.0 Pin
Neagoe Gabriel26-Oct-05 22:19
Neagoe Gabriel26-Oct-05 22:19 
AnswerRe: Xp Like ScrollBar in VC++ 6.0 Pin
Anonymous27-Oct-05 0:01
Anonymous27-Oct-05 0:01 
Questionwincrypt.h? Pin
adonisv26-Oct-05 20:32
adonisv26-Oct-05 20:32 
AnswerRe: wincrypt.h? Pin
__yb26-Oct-05 21:30
__yb26-Oct-05 21:30 
GeneralRe: wincrypt.h? Pin
adonisv27-Oct-05 12:08
adonisv27-Oct-05 12:08 
GeneralRe: wincrypt.h? Pin
TheGreatAndPowerfulOz28-Oct-05 3:21
TheGreatAndPowerfulOz28-Oct-05 3:21 
GeneralRe: wincrypt.h? Pin
adonisv28-Oct-05 13:46
adonisv28-Oct-05 13:46 
GeneralRe: wincrypt.h? Pin
__yb31-Oct-05 21:10
__yb31-Oct-05 21:10 
Questiona garbage value from va_arg() Pin
plowstar26-Oct-05 19:29
plowstar26-Oct-05 19:29 
AnswerRe: a garbage value from va_arg() Pin
__yb26-Oct-05 21:43
__yb26-Oct-05 21:43 
AnswerRe: a garbage value from va_arg() Pin
David Crow27-Oct-05 2:43
David Crow27-Oct-05 2:43 
Questionwhile (*p++); Pin
Chintoo72326-Oct-05 16:45
Chintoo72326-Oct-05 16:45 
AnswerRe: while (*p++); Pin
John R. Shaw26-Oct-05 16:58
John R. Shaw26-Oct-05 16:58 
GeneralRe: while (*p++); Pin
Anonymous26-Oct-05 17:53
Anonymous26-Oct-05 17:53 
GeneralRe: while (*p++); Pin
John R. Shaw26-Oct-05 19:08
John R. Shaw26-Oct-05 19:08 
GeneralRe: while (*p++); Pin
Chintoo72327-Oct-05 5:37
Chintoo72327-Oct-05 5:37 

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.