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

C / C++ / MFC

 
GeneralRe: Mouse Messages Pin
Christian Graus8-Jul-02 16:57
protectorChristian Graus8-Jul-02 16:57 
GeneralRe: Mouse Messages Pin
carp10-Jul-02 5:55
carp10-Jul-02 5:55 
GeneralRe: Mouse Messages Pin
Christian Graus10-Jul-02 12:29
protectorChristian Graus10-Jul-02 12:29 
GeneralVariable Number of Arguments Pin
8-Jul-02 13:03
suss8-Jul-02 13:03 
GeneralRe: Variable Number of Arguments Pin
8-Jul-02 13:07
suss8-Jul-02 13:07 
GeneralRe: Variable Number of Arguments Pin
Chris Losinger8-Jul-02 14:18
professionalChris Losinger8-Jul-02 14:18 
GeneralRe: Variable Number of Arguments Pin
8-Jul-02 16:07
suss8-Jul-02 16:07 
Questionpragma warning disable? Pin
User 66588-Jul-02 11:06
User 66588-Jul-02 11:06 
Hi!

I keep getting linker warnings when using the directive /ALIGN:4096 or some other linker options that result in warnings but have no effect on the application. That's why I try to disable these warnings since they are quite annoying in the debug window.

The only thing that works for me is specifying /ignore:4108 in the linker options of my project. This really eliminates the warning about the /ALIGN directive. But I want to use a #pragma command instead of the /ignore command in the linker options.

I tried to put the line
#pragma warning(disable : 4108)
both in my source and header files, but this didn't remove the warnings in the debug/output window.

So what's the correct way to use this pragma directive?

regards
Greg

modified 12-Sep-18 21:01pm.

AnswerRe: pragma warning disable? Pin
Stuart Dootson8-Jul-02 12:42
professionalStuart Dootson8-Jul-02 12:42 
AnswerRe: pragma warning disable? Pin
Michael Dunn8-Jul-02 16:53
sitebuilderMichael Dunn8-Jul-02 16:53 
GeneralRe: pragma warning disable? Pin
User 66589-Jul-02 0:03
User 66589-Jul-02 0:03 
Questionmalloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 9:59
yarp8-Jul-02 9:59 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Tim Smith8-Jul-02 10:10
Tim Smith8-Jul-02 10:10 
GeneralRe: malloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 18:52
yarp8-Jul-02 18:52 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Marshall8-Jul-02 10:51
Marshall8-Jul-02 10:51 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Gary Kirkham8-Jul-02 11:51
Gary Kirkham8-Jul-02 11:51 
GeneralRe: malloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 18:57
yarp8-Jul-02 18:57 
Generalautomation problem. excel Pin
pnpfriend8-Jul-02 9:55
pnpfriend8-Jul-02 9:55 
QuestionGDI+ Image.Save Function? Pin
Andy Brace8-Jul-02 9:41
Andy Brace8-Jul-02 9:41 
GeneralExe/Dll Dependancies. Pin
Mike Doner8-Jul-02 9:34
Mike Doner8-Jul-02 9:34 
GeneralRe: Exe/Dll Dependancies. Pin
Oliver Daniel8-Jul-02 10:08
Oliver Daniel8-Jul-02 10:08 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner9-Jul-02 9:06
Mike Doner9-Jul-02 9:06 
GeneralRe: Exe/Dll Dependancies. Pin
-Dy10-Jul-02 23:45
-Dy10-Jul-02 23:45 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner12-Jul-02 2:59
Mike Doner12-Jul-02 2:59 
GeneralWNetAddConnection2 fails with error code 1312 Pin
alma8-Jul-02 9:24
alma8-Jul-02 9:24 

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.