Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: access excel data using c++ PinmemberJochen Arndt19-Nov-12 3:26 
QuestionScroll window after zoom [modified] PinmemberFlaviu218-Nov-12 23:11 
AnswerMessage Removed PinmemberFlaviu218-Nov-12 23:18 
QuestionPre commit hooks for svn PinmemberMukul_P18-Nov-12 18:41 
AnswerRe: Pre commit hooks for svn PinmvpRichard MacCutchan18-Nov-12 22:42 
AnswerRe: Pre commit hooks for svn [modified] PinmemberApril Fans22-Dec-12 22:07 
QuestionC++, RealTime Scheduler in Operating System PinmemberKevin Stlip17-Nov-12 17:10 
AnswerRe: C++, RealTime Scheduler in Operating System PinmvpRichard MacCutchan17-Nov-12 22:46 
Questionporting my device driver 32 bit to windows 7 64 bit Pinmembernavn199116-Nov-12 23:03 
AnswerRe: porting my device driver 32 bit to windows 7 64 bit Pinmemberjschell17-Nov-12 6:52 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit PinmemberBilliousBob23-Nov-12 5:50 
AnswerRe: porting my device driver 32 bit to windows 7 64 bit PinmemberClark Kent SuperCoder17-Nov-12 6:52 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit Pinmembernavn199118-Nov-12 22:54 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit PinmemberClark Kent SuperCoder19-Nov-12 1:15 
Yea. You must.

Be careful when performing unsigned and signed operations. Consider the following:
 
ULONG x;
LONG y;
LONG *pVar1;
LONG *pVar2;

pVar2 = pVar1 + y * (x - 1);
 
The problem arises because x is unsigned, which makes the entire expression unsigned. This works fine unless y is negative.
 
In this case, y is converted to an unsigned value, the expression is evaluated using 32-bit precision, scaled, and added to pVar1.
 
On 64-bit Windows, this 32-bit unsigned negative number becomes a large 64-bit positive number, which gives the wrong result.
 
To fix this problem, declare x as a signed value or explicitly typecast it to LONG in the expression.
GeneralRe: porting my device driver 32 bit to windows 7 64 bit Pinmembernavn199121-Nov-12 3:40 
GeneralRe: porting my device driver 32 bit to windows 7 64 bit PinmemberBilliousBob23-Nov-12 5:51 
AnswerRe: porting my device driver 32 bit to windows 7 64 bit PinmemberBilliousBob23-Nov-12 5:50 
QuestionMemory usage Pinmemberjohn563215-Nov-12 22:48 
AnswerRe: Memory usage PinmemberOrjan Westin16-Nov-12 0:23 
AnswerRe: Memory usage PinmemberDavidCrow16-Nov-12 3:27 
AnswerRe: Memory usage PinmemberRolf Kristensen16-Nov-12 4:30 
AnswerRe: Memory usage PinmemberArun S J18-Nov-12 19:13 
Questioninterp project in 64bit system PinmemberDang Vu Tuan15-Nov-12 22:46 
AnswerRe: interp project in 64bit system PinmvpRichard MacCutchan16-Nov-12 0:57 
QuestionSql server Database BackUp Pinmembershibashish mohanty15-Nov-12 21:06 
AnswerRe: Sql server Database BackUp PinmvpRichard MacCutchan16-Nov-12 0:55 
AnswerRe: Sql server Database BackUp PinmemberAndré Kraak16-Nov-12 1:48 
QuestionNeed help compiling PinmemberxLeonx15-Nov-12 9:51 
AnswerRe: Need help compiling Pinmemberjeron115-Nov-12 10:51 
QuestionRe: Need help compiling PinmemberDavidCrow15-Nov-12 11:34 
QuestionRe: Need help compiling PinmvpCPallini16-Nov-12 0:09 
AnswerRe: Need help compiling PinmemberxLeonx18-Nov-12 10:35 
AnswerRe: Need help compiling PinmemberStephen Hewitt16-Nov-12 23:36 
GeneralRe: Need help compiling PinmemberxLeonx18-Nov-12 10:31 
GeneralRe: Need help compiling PinmemberxLeonx18-Nov-12 10:33 
AnswerRe: Need help compiling PinmemberArun S J18-Nov-12 19:15 
GeneralRe: Need help compiling PinmemberxLeonx23-Nov-12 9:20 
GeneralRe: Need help compiling PinmemberArun S J25-Nov-12 18:37 
QuestionVisual Studio 2003 on Windows 8! PinmemberHadi Dayvary15-Nov-12 5:23 
Question[RESOLVED] Message Box will not show on top of window PinmemberBrandon T. H.15-Nov-12 2:14 
AnswerRe: Message Box will not show on top of window PinmvpRichard MacCutchan15-Nov-12 4:16 
GeneralRe: Message Box will not show on top of window PinmemberBrandon T. H.15-Nov-12 9:13 
GeneralRe: Message Box will not show on top of window PinmvpRichard MacCutchan16-Nov-12 0:42 
GeneralRe: Message Box will not show on top of window PinmemberBrandon T. H.17-Nov-12 5:30 
AnswerRe: [RESOLVED] Message Box will not show on top of window PinmemberArun S J18-Nov-12 21:16 
QuestionUsing make file PinmemberHungryCPPDev15-Nov-12 1:55 
AnswerRe: Using make file PinmemberJochen Arndt15-Nov-12 3:20 
Questionhow to create an Un-sorted map in c++ Pinmembernarmada Padhy14-Nov-12 19:04 
AnswerRe: how to create an Un-sorted map in c++ PinmvpRichard MacCutchan14-Nov-12 22:01 
AnswerRe: how to create an Un-sorted map in c++ PinmemberStephen Hewitt14-Nov-12 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 29 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid