Create Simple Windows Using VC++

Create Simple Windows Program

#include<afxwin.h> 

class MyWindow : public CFrameWnd {
public:

   MyWindow() {
      Create(0, "My Window");
   }
};

class Applet : public CWinApp {
public:

   int InitInstance() {
      MyWindow *Pointer = new MyWindow();
      Pointer->ShowWindow(3);
      m_pMainWnd = Pointer;
      return true;
   }
};
Applet Instance;