Skip to main content
GameDev.net gamedev.net
🔒 Locked

VC6 Pragma's

Started by CheeseMonger Aug 5, 2003 at 7:49 PM 2 replies 800+ views
Original Post
CheeseMonger
CheeseMonger
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
UltimaX
UltimaX
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!"
CheeseMonger
CheeseMonger
Excellent, thanks.

- CheeseMonger
CheeseMonger
UltimaX
UltimaX
You''re welcome

-UltimaX-

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.