User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 397,696 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,530 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Apr 12th, 2007
Views: 1,676
This code will create for you an application. we are goig to use visual c++ for it
open visual, c++.
click file then New.
in the New dialogue box click projects.
click win32 application.
give it a name eg my_project.
and click finish.

Then again click file.
click files.
the C++ source.
give it a name eg CMyApp.
click ok.
specify that it is an empty application.
finish.
Last edited : Apr 13th, 2007.
visualcplusplus Syntax
  1. #include <afxwin.h>
  2.  
  3. class CMyApp : public CWinApp
  4. {
  5. public:
  6. virtual BOOL InitInstance();
  7. };
  8.  
  9. class CMainFrame : public CFrameWnd
  10. {
  11. public:
  12. CMainFrame();
  13. };
  14.  
  15. CMainFrame::CMainFrame()
  16. {
  17. Create(NULL, "my application");
  18. }
  19.  
  20. BOOL CMyApp::InitInstance()
  21. {
  22. m_pMainWnd = new CMainFrame;
  23. m_pMainWnd->ShowWindow(SW_NORMAL);
  24.  
  25. return TRUE;
  26. }
  27.  
  28. CMyApp theApp;
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 1:20 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC