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

C / C++ / MFC

 
GeneralRe: Constructor help – getting data from CListView to dialog. Pin
Vaclav_21-Jan-08 13:10
Vaclav_21-Jan-08 13:10 
QuestionRe: Constructor help – getting data from CListView to dialog. Pin
CPallini21-Jan-08 22:03
mveCPallini21-Jan-08 22:03 
GeneralRe: Constructor help – getting data from CListView to dialog. Pin
Vaclav_22-Jan-08 5:12
Vaclav_22-Jan-08 5:12 
General[Solved?] Constructor help – getting data from CListView to dialog. Pin
Vaclav_22-Jan-08 12:06
Vaclav_22-Jan-08 12:06 
GeneralRe: [Solved?] Constructor help – getting data from CListView to dialog. Pin
Mike Danberg23-Jan-08 19:17
Mike Danberg23-Jan-08 19:17 
GeneralCalling a function Pin
newkid21-Jan-08 4:05
newkid21-Jan-08 4:05 
GeneralWrong forum Pin
CPallini21-Jan-08 4:21
mveCPallini21-Jan-08 4:21 
GeneralError in Release build (Shift Operator) Pin
Sumanta Rout21-Jan-08 3:14
Sumanta Rout21-Jan-08 3:14 
Hi,

I am using right shift operator in my project. The following code snippet shows the sample of the project.

This project is compiled in VS 2005

#include "stdafx.h"
#include <iostream>
#include<conio.h>

using namespace std;


#define JULIAN_ADJUSTMENT 1721425L

int _tmain(int argc, _TCHAR* argv[])
{
long theDate=2453843;
long theAdjustedDays = (theDate >> 32 ) - JULIAN_ADJUSTMENT;

std::cout<<theAdjustedDays;

getch();

return 0;
}

While in debug build, I am getting correct answer: 732418

and in release build, it gives wrong value: -1721425

Please let me know how to resolve this issue in release build.

Thanks in advance

Sumanta
GeneralRe: Error in Release build (Shift Operator) Pin
David Crow21-Jan-08 3:36
David Crow21-Jan-08 3:36 
GeneralRe: Error in Release build (Shift Operator) Pin
Alexander M.,21-Jan-08 3:42
Alexander M.,21-Jan-08 3:42 
GeneralRe: Error in Release build (Shift Operator): is it actually a C++ compiler bug? Pin
CPallini21-Jan-08 4:04
mveCPallini21-Jan-08 4:04 
GeneralRe: Error in Release build (Shift Operator) Pin
CPallini21-Jan-08 5:04
mveCPallini21-Jan-08 5:04 
GeneralAnti keylogger Pin
Eikthrynir21-Jan-08 3:05
Eikthrynir21-Jan-08 3:05 
GeneralRe: Anti keylogger Pin
Alexander M.,21-Jan-08 3:39
Alexander M.,21-Jan-08 3:39 
GeneralRe: Anti keylogger [modified] Pin
Eikthrynir21-Jan-08 3:45
Eikthrynir21-Jan-08 3:45 
QuestionCPropertySheet PressButton does not work Pin
linton samuel dawson21-Jan-08 2:12
linton samuel dawson21-Jan-08 2:12 
QuestionRe: CPropertySheet PressButton does not work Pin
David Crow21-Jan-08 3:04
David Crow21-Jan-08 3:04 
AnswerRe: CPropertySheet PressButton does not work Pin
linton samuel dawson21-Jan-08 3:08
linton samuel dawson21-Jan-08 3:08 
QuestionRe: CPropertySheet PressButton does not work Pin
David Crow21-Jan-08 3:47
David Crow21-Jan-08 3:47 
AnswerRe: CPropertySheet PressButton does not work Pin
linton samuel dawson21-Jan-08 4:08
linton samuel dawson21-Jan-08 4:08 
GeneralRe: CPropertySheet PressButton does not work Pin
linton samuel dawson21-Jan-08 4:53
linton samuel dawson21-Jan-08 4:53 
GeneralRe: CPropertySheet PressButton does not work Pin
KarstenK21-Jan-08 3:59
mveKarstenK21-Jan-08 3:59 
AnswerRe: CPropertySheet PressButton does not work Pin
linton samuel dawson21-Jan-08 4:01
linton samuel dawson21-Jan-08 4:01 
GeneralDos windows invisible Pin
tom groezer21-Jan-08 1:30
tom groezer21-Jan-08 1:30 
GeneralRe: Dos windows invisible Pin
JudyL_MD21-Jan-08 2:01
JudyL_MD21-Jan-08 2:01 

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.