HI:
I wanted to create a dialog-less with access to most of the MFC features. Hence I created a simple Win32 app in VC++. What I did was comment out:
//ShowWindow(hWnd, nCmdShow);
//UpdateWindow(hWnd);
from the function InitInstance( , )
Next I added the following lines in StdAfx.h below the line
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// MY ADDITIONS
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
Now I get this warning (but no errors) that baffles me. However the prgoram runs as expected.
ERROR:
c:\documents and settings\admin\my documents\proj\resource.h(16) : warning C4005: 'IDC_STATIC' : macro redefinition
c:\program files\microsoft visual studio\vc98\mfc\include\afxres.h(290) : see previous definition of 'IDC_STATIC'
I cannot figure out which lines to remove. Tried to comment out line (16) but the problem persists.
Any help will be appreciated.
I wanted to create a dialog-less with access to most of the MFC features. Hence I created a simple Win32 app in VC++. What I did was comment out:
//ShowWindow(hWnd, nCmdShow);
//UpdateWindow(hWnd);
from the function InitInstance( , )
Next I added the following lines in StdAfx.h below the line
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// MY ADDITIONS
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
Now I get this warning (but no errors) that baffles me. However the prgoram runs as expected.
ERROR:
c:\documents and settings\admin\my documents\proj\resource.h(16) : warning C4005: 'IDC_STATIC' : macro redefinition
c:\program files\microsoft visual studio\vc98\mfc\include\afxres.h(290) : see previous definition of 'IDC_STATIC'
I cannot figure out which lines to remove. Tried to comment out line (16) but the problem persists.
Any help will be appreciated.