Question

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 108
Reputation: Majestics is an unknown quantity at this point 
Solved Threads: 7
Majestics Majestics is offline Offline
Junior Poster

Question

 
0
  #1
Aug 31st, 2009
// OnscreenKeyboard.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "OnscreenKeyboard.h"
#include "OnscreenKeyboardDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// COnscreenKeyboardApp

BEGIN_MESSAGE_MAP(COnscreenKeyboardApp, CWinApp)
	//{{AFX_MSG_MAP(COnscreenKeyboardApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COnscreenKeyboardApp construction

COnscreenKeyboardApp::COnscreenKeyboardApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only COnscreenKeyboardApp object

COnscreenKeyboardApp theApp;

/////////////////////////////////////////////////////////////////////////////
// COnscreenKeyboardApp initialization

BOOL COnscreenKeyboardApp::InitInstance()
{
	AfxEnableControlContainer();

	// Standard initialization
	// If you are not using these features and wish to reduce the size
	//  of your final executable, you should remove from the following
	//  the specific initialization routines you do not need.

#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif

	COnscreenKeyboardDlg dlg;
	m_pMainWnd = &dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}

From where this programe start execution ?
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 359
Reputation: jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice 
Solved Threads: 69
jencas jencas is offline Offline
Posting Whiz

Re: Question

 
0
  #2
Aug 31st, 2009
WinMain() -> http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx

p.s. and please.... you have 101 posts and should be able to give your request a meaningful title!
Last edited by jencas; Aug 31st, 2009 at 7:54 am. Reason: link added
If you are forced to reinvent the wheel at least try to invent a better one!

Please use code tags - Please mark solved threads as solved
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 108
Reputation: Majestics is an unknown quantity at this point 
Solved Threads: 7
Majestics Majestics is offline Offline
Junior Poster

Re: Question

 
0
  #3
Aug 31st, 2009
Sorry but it didn't help me ... I want the answer from my given source code.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,825
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 297
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is offline Offline
Roasting Maven

Re: Question

 
0
  #4
Aug 31st, 2009
In the constructor (as always in C++) --> COnscreenKeyboardApp::COnscreenKeyboardApp()
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 67
Reputation: Tigran is an unknown quantity at this point 
Solved Threads: 5
Tigran Tigran is offline Offline
Junior Poster in Training

Re: Question

 
0
  #5
Aug 31st, 2009
A program starts at main() or another function with _stdcall in front of it.

This is just a class, so you'll prolly still need to create the class/run the constructor to start it.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 147
Reputation: GDICommander is an unknown quantity at this point 
Solved Threads: 19
GDICommander's Avatar
GDICommander GDICommander is offline Offline
Junior Poster

Re: Question

 
0
  #6
Aug 31st, 2009
Your main() should be in an other file...
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC