Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unusual memory leak ( code attached ) Pin
CPallini13-Sep-08 23:58
mveCPallini13-Sep-08 23:58 
GeneralRe: Unusual memory leak ( code attached ) Pin
Yanshof14-Sep-08 0:04
Yanshof14-Sep-08 0:04 
QuestionRe: Unusual memory leak ( code attached ) Pin
CPallini14-Sep-08 0:32
mveCPallini14-Sep-08 0:32 
AnswerRe: Unusual memory leak ( code attached ) Pin
Yanshof14-Sep-08 0:35
Yanshof14-Sep-08 0:35 
QuestionRe: Unusual memory leak ( code attached ) Pin
CPallini14-Sep-08 4:09
mveCPallini14-Sep-08 4:09 
QuestionAfxOleInit called OleInitialize inside, but no AfxOleUninit Pin
followait13-Sep-08 17:32
followait13-Sep-08 17:32 
AnswerRe: AfxOleInit called OleInitialize inside, but no AfxOleUninit Pin
CPallini14-Sep-08 6:41
mveCPallini14-Sep-08 6:41 
Questionwarning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie13-Sep-08 16:04
FrankMookie13-Sep-08 16:04 
Hi.
I'm getting this warning in my project:
warning C4244: '=' : conversion from 'int' to 'char', possible loss of data

This is the code:
(...)
char resp;

while(op_back!=2)
{
       (...)
	if(A !=0)
	{
	do
	{
		(...)
		cout<<"Do you want to modify this object? [Y/N]  ";
		fflush(stdin); cin>>resp;
		resp=toupper(resp);	
        }while(!(resp=='Y' || resp=='N'));
		if(resp=='Y')
		{
                (...)


Is there an easy way to resolve this warning?

And another warning:
warning C4310: cast truncates constant value

gotoxy(0,1);cout<<char(218);

Thank you!
Thank you

"Failure is always an option."

QuestionRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
Mark Salsbery13-Sep-08 16:11
Mark Salsbery13-Sep-08 16:11 
AnswerRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie13-Sep-08 16:14
FrankMookie13-Sep-08 16:14 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
bob1697214-Sep-08 8:06
bob1697214-Sep-08 8:06 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 8:09
FrankMookie14-Sep-08 8:09 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
bob1697214-Sep-08 10:25
bob1697214-Sep-08 10:25 
AnswerRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini13-Sep-08 21:04
mveCPallini13-Sep-08 21:04 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 7:48
FrankMookie14-Sep-08 7:48 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini14-Sep-08 8:19
mveCPallini14-Sep-08 8:19 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 10:44
FrankMookie14-Sep-08 10:44 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini14-Sep-08 11:31
mveCPallini14-Sep-08 11:31 
QuestionA Question about AfxRegisterWndClass Pin
BobInNJ13-Sep-08 13:09
BobInNJ13-Sep-08 13:09 
AnswerRe: A Question about AfxRegisterWndClass Pin
Mark Salsbery13-Sep-08 15:55
Mark Salsbery13-Sep-08 15:55 
AnswerRe: A Question about AfxRegisterWndClass Pin
CPallini14-Sep-08 6:53
mveCPallini14-Sep-08 6:53 
QuestionWhy the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:04
Joseph Marzbani13-Sep-08 9:04 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:19
Mark Salsbery13-Sep-08 9:19 
NewsRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:26
Joseph Marzbani13-Sep-08 9:26 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:40
Mark Salsbery13-Sep-08 9:40 

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.