VC6 Pragma's

Started by
2 comments, last by CheeseMonger 20 years, 8 months ago
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]
- CheeseMonger
Advertisement
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!"
Excellent, thanks.

- CheeseMonger
- CheeseMonger
You''re welcome

-UltimaX-

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

This topic is closed to new replies.

Advertisement