MFC small help please
Managed C++/CLI
1
Posts
1
Posters
1
Views
1
Watching
-
This code work:
int CPageWelcome::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;CStatic \* lblPresent = new CStatic(); lblPresent->Create(L"Present", WS\_CHILD | WS\_VISIBLE, CRect(20, 20, 100, 40), this); return 0;
}
This code dont work:
int CPageWelcome::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;CStatic lblPresent; lblPresent.Create(L"Present", WS\_CHILD | WS\_VISIBLE, CRect(20, 20, 100, 40), this); return 0;
}
Please help i dont understand. Thank.