Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to detect process termination Pin
ThatsAlok20-Nov-07 19:57
ThatsAlok20-Nov-07 19:57 
GeneralRe: how to detect process termination Pin
harsha u20-Nov-07 21:55
harsha u20-Nov-07 21:55 
QuestionLoading *.mht files from a stream using CHTMLView Pin
sdancer7519-Nov-07 22:05
sdancer7519-Nov-07 22:05 
QuestionHow to avoid warning LNK4224: /COMMENT is no longer supported Pin
mohindar_kks19-Nov-07 22:02
mohindar_kks19-Nov-07 22:02 
AnswerRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
CPallini19-Nov-07 22:10
mveCPallini19-Nov-07 22:10 
AnswerRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Nelek19-Nov-07 22:24
protectorNelek19-Nov-07 22:24 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Cedric Moonen19-Nov-07 23:13
Cedric Moonen19-Nov-07 23:13 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Nelek19-Nov-07 23:49
protectorNelek19-Nov-07 23:49 
But there are some times that the warnings are not relevant or don't matter, due to the code.

I.E.

In the functions I added to the smartlist in my article:

warning C4181: Auf Referenztyp angewendeter Qualifizierer wird ignoriert
// In reference type the used qualifier will be ignored
REASON: BOOL FindAndRemoveElement(const ARG_TYPE searchValue);


warning C4018: '<=' : Conflict between signed and unsigned
REASON: if (pInfo->m_nCurPage <= (nInPages + (1 * (m_nPrintSel & PRALL))))


warning C4244: 'argument' : Conversion of 'const double' in 'int', possible loose of data
REASON: cbmGraphic.CreateCompatibleBitmap (pDC, 4 * GWIDTH, -4 * GHEIGHT);
SOLUTION: casting to the correct typ, but dont needed, but in this case I wanna lose the decimals by truncating and the constants must be float/double for other places to be used. And I have about 90 times this warning


warning C4308: Negative Ganzzahlkonstante in vorzeichenlosen Typ konvertiert
//Conversion of negative integer constant in unsigned type
REASON: file->Seek (-3 * sizeof (BYTE), CFile::current);


So I use
#pragma warning(disable:4244)
#pragma warning(disable:4018)
#pragma warning(disable:4181)

and from 116 warnings I go to just 1 of them





Greetings.

--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Cedric Moonen20-Nov-07 1:11
Cedric Moonen20-Nov-07 1:11 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Nelek20-Nov-07 2:24
protectorNelek20-Nov-07 2:24 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
DoomedOne20-Nov-07 7:21
DoomedOne20-Nov-07 7:21 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Nelek20-Nov-07 21:35
protectorNelek20-Nov-07 21:35 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
David Crow20-Nov-07 2:57
David Crow20-Nov-07 2:57 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Nelek20-Nov-07 4:06
protectorNelek20-Nov-07 4:06 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
bob1697220-Nov-07 1:58
bob1697220-Nov-07 1:58 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Nelek20-Nov-07 2:25
protectorNelek20-Nov-07 2:25 
AnswerRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Paresh Chitte19-Nov-07 22:51
Paresh Chitte19-Nov-07 22:51 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Cedric Moonen19-Nov-07 23:14
Cedric Moonen19-Nov-07 23:14 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
Paresh Chitte19-Nov-07 23:22
Paresh Chitte19-Nov-07 23:22 
GeneralRe: How to avoid warning LNK4224: /COMMENT is no longer supported Pin
mohindar_kks20-Nov-07 1:55
mohindar_kks20-Nov-07 1:55 
Questionreaching a database on network Pin
aguest19-Nov-07 21:28
aguest19-Nov-07 21:28 
AnswerRe: reaching a database on network Pin
David Crow20-Nov-07 3:07
David Crow20-Nov-07 3:07 
Questiona link error about template and construction Pin
richardye19-Nov-07 20:47
richardye19-Nov-07 20:47 
AnswerRe: a link error about template and construction Pin
Cedric Moonen19-Nov-07 21:01
Cedric Moonen19-Nov-07 21:01 
AnswerRe: a link error about template and construction Pin
David Crow20-Nov-07 3:18
David Crow20-Nov-07 3:18 

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.