Well i decide to learn some C/C++ since i heard about the Express Edition. Im running into some strange error(im not a programmer, im a 3DCG artist).
heres my code:
#include <afxwin.h>
struct CFrameTest : public CFrameWnd
{
CFrameTest()
{
Create(NULL, "Windows Application Tester",
WS_POPUPWINDOW | WS_CAPTION,
CRect(400, 280, 580, 520), NULL, NULL,
WS_EX_TOOLWINDOW);
}
};
struct CAppTest : public CWinApp
{
BOOL InitInstance()
{
CFrameTest *Tester = new CFrameTest();
m_pMainWnd = Tester;
Tester->ShowWindow(SW_NORMAL);
return TRUE;
}
};
CAppTest theApp;
heres my error:
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mfc\afxwin1.inl(1034) : error C4430: missing type specifier - int assumed. Note: C++ does not support
i get this error twice, the first on line 1034 than 1036. And yes im a total noob to programming..
line 1034 of afxwin1.inl:
{ return ((HMENU) menu) == m_hMenu; }
line 1036 of afxwin1.inl:
{ return ((HMENU) menu) != m_hMenu; }

afxwin1.inl(1034): error C4430
idrissbahhussein
http://download.microsoft.com/download/c/e/8/ce8ef096-250d-4214-869d-9d7b218f3f27/Video1_PSDK.wmv
thank you Microsoft for the video :)
PremP
Mike @ DanRic
This code is MFC code. The VS C++ Express Version does not contain headers and libraries to program MFC or ATL!
You need at least VS 2005 Standard!
Gus Crawford
This operation is not defined Return type!!
afxwin1.inl
_AFXWIN_INLINE CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
_AFXWIN_INLINE CMenu::operator!=(const CMenu& menu) const
{ return ((HMENU) menu) != m_hMenu; }
change to
_AFXWIN_INLINE BOOL CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
_AFXWIN_INLINE BOOL CMenu::operator!=(const CMenu& menu) const
{ return ((HMENU) menu) != m_hMenu; }