Archived

This topic is now archived and is closed to further replies.

VC6 Pragma's

This topic is 5248 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

CConsole.cpp:
#include "CConsole.h"

#pragma warning( disable : 4786 )
#pragma message( " " )
#pragma message( "Warning C4786 Disabled!" )
#pragma message( " " )

CConsole::CConsole()
{
	//init values
	strWndClass = "DebugConsoleWindow";
	strWndCaption = "Debug Console:";
...etc...etc...
  
Why do I keep getting multiple 4786 warnings after the "Warning C4786 Disabled!" message? Not an important issue (just annoying) but any help appreciated. - CheeseMonger [edited by - CheeseMonger on August 5, 2003 8:52:17 PM]

Share this post


Link to post
Share on other sites
Add it before you include the header file. It should get rid of the problem.

#pragma warning( disable : 4786 )
#pragma message( " " )
#pragma message( "Warning C4786 Disabled!" )
#pragma message( " " )

#include "CConsole.h"

CConsole::CConsole()
{
//init values
strWndClass = "DebugConsoleWindow";
strWndCaption = "Debug Console:";
...etc...etc...
}

-UltimaX-

"You wished for a white christmas... Now go shovel your wishes!"

Share this post


Link to post
Share on other sites