Click here to Skip to main content
15,916,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Making a dialog over everything - even games Pin
awah12-Jul-05 17:20
awah12-Jul-05 17:20 
Questiona paradox in mfc head file? Pin
wrb30210-Jul-05 20:29
wrb30210-Jul-05 20:29 
AnswerRe: a paradox in mfc head file? Pin
David Crow11-Jul-05 3:44
David Crow11-Jul-05 3:44 
GeneralQuestion about displaying a property page Pin
PrashantJ10-Jul-05 20:14
PrashantJ10-Jul-05 20:14 
GeneralAbout building a Windows service Pin
zhaopi10-Jul-05 20:04
zhaopi10-Jul-05 20:04 
GeneralRe: About building a Windows service Pin
zhaopi10-Jul-05 20:07
zhaopi10-Jul-05 20:07 
GeneralRe: About building a Windows service Pin
Blake Miller11-Jul-05 5:02
Blake Miller11-Jul-05 5:02 
General16bit & 32bit Portability issues Pin
Anonymous10-Jul-05 19:25
Anonymous10-Jul-05 19:25 
Hi,

I have the following code written for a target compiler (Keil compiler) which uses 16 bits:

-----------------------
signed short int a, b, c;

a = (b + c) / 2;
-------------------------

With the inputs for b = 30720, c = 30720,

i) when VC++ compiler is used, the value of a is evaluated as 30720.

ii) However, when using the Keil compiler, the value of a is evaluated as -2048. This is due to the fact that the calculated value of (b + c) is 61440 and as this value lies above the valid range of signed short int, it gets wrapped to -4096 before division by 2. This value after division becomes -2048.

Now my concern is that if there exists any settings in VC++ compiler environment so that I get the same value for the variable 'a' as that of Keil environment. An early response would be appreciated.
GeneralRe: 16bit & 32bit Portability issues Pin
David Crow11-Jul-05 3:51
David Crow11-Jul-05 3:51 
GeneralNotification on CPU frequency change in SpeedStep Pin
Vitaly Kashkarov10-Jul-05 19:09
Vitaly Kashkarov10-Jul-05 19:09 
GeneralDirectSound Question Pin
Mark Keeling10-Jul-05 17:58
Mark Keeling10-Jul-05 17:58 
GeneralRe: DirectSound Question Pin
Trollslayer10-Jul-05 22:15
mentorTrollslayer10-Jul-05 22:15 
GeneralRe: DirectSound Question Pin
Mark Keeling12-Jul-05 13:56
Mark Keeling12-Jul-05 13:56 
GeneralRe: How to insert a record into table in the oracle Pin
Christian Graus10-Jul-05 17:35
protectorChristian Graus10-Jul-05 17:35 
QuestionHow to put a button on the main window Pin
shfinfrock10-Jul-05 15:14
shfinfrock10-Jul-05 15:14 
AnswerRe: How to put a button on the main window Pin
Jose Lamas Rios10-Jul-05 16:26
Jose Lamas Rios10-Jul-05 16:26 
Generalsend a GET, POST request to a HTTPS server Pin
surfman1910-Jul-05 10:22
surfman1910-Jul-05 10:22 
GeneralRe: send a GET, POST request to a HTTPS server Pin
Andrew Kirillov10-Jul-05 20:25
Andrew Kirillov10-Jul-05 20:25 
GeneralRe: send a GET, POST request to a HTTPS server Pin
surfman1917-Jul-05 4:55
surfman1917-Jul-05 4:55 
Generalerror code Pin
locoone10-Jul-05 3:07
locoone10-Jul-05 3:07 
GeneralRe: error code Pin
Gary R. Wheeler10-Jul-05 3:17
Gary R. Wheeler10-Jul-05 3:17 
GeneralRe: error code Pin
Alexander M.,10-Jul-05 3:21
Alexander M.,10-Jul-05 3:21 
GeneralException Handling. Pin
jerry1211a10-Jul-05 3:06
jerry1211a10-Jul-05 3:06 
GeneralRe: Exception Handling. Pin
jerry1211a10-Jul-05 3:10
jerry1211a10-Jul-05 3:10 
GeneralRe: Exception Handling. Pin
S. Senthil Kumar10-Jul-05 3:43
S. Senthil Kumar10-Jul-05 3:43 

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.