Click here to Skip to main content
15,895,792 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [mfc] restart other process [modified] Pin
rahuljin23-Jul-09 21:57
rahuljin23-Jul-09 21:57 
GeneralRe: [mfc] restart other process Pin
Rajesh R Subramanian23-Jul-09 21:08
professionalRajesh R Subramanian23-Jul-09 21:08 
AnswerRe: [mfc] restart other process Pin
ThatsAlok23-Jul-09 19:48
ThatsAlok23-Jul-09 19:48 
GeneralRe: [mfc] restart other process Pin
Rajesh R Subramanian23-Jul-09 21:07
professionalRajesh R Subramanian23-Jul-09 21:07 
GeneralRe: [mfc] restart other process Pin
ThatsAlok23-Jul-09 22:38
ThatsAlok23-Jul-09 22:38 
GeneralRe: [mfc] restart other process Pin
ThatsAlok24-Jul-09 1:14
ThatsAlok24-Jul-09 1:14 
GeneralRe: [mfc] restart other process Pin
Rajesh R Subramanian24-Jul-09 6:15
professionalRajesh R Subramanian24-Jul-09 6:15 
QuestionException Error. Pin
FISH78623-Jul-09 5:20
FISH78623-Jul-09 5:20 
Can Someone help I am not sure whats wrong.

I am getting the following debug message:
First-chance exception at 0x5d0c373e in Capture Data.exe: 0xC0000005: Access violation writing location 0x0043454c.

However on exit I get:
The program '[1284] Capture Data.exe: Native' has exited with code 0 (0x0).
Here is the code I have used:
BOOL CCaptureDataApp::InitInstance()
{
InitCommonControls();
CWinApp::InitInstance();
CCaptureDataSheet sheet("My Very Own Property Sheet App",NULL,0);
sheet.m_psh.dwFlags |= PSH_NOAPPLYNOW;//hide apply button
m_pMainWnd=&sheet;
INT_PTR nResponse=sheet.DoModal();
return FALSE;

In the Capture Data Sheet
IMPLEMENT_DYNAMIC(CCaptureDataSheet, CPropertySheet)
CCaptureDataSheet::CCaptureDataSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	AddPage(&m_Page01);
	AddPage(&m_Page02);
}

CCaptureDataSheet::CCaptureDataSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	AddPage(&m_Page01);
	AddPage(&m_Page02);
}

CCaptureDataSheet::~CCaptureDataSheet()
{
}
BOOL CCaptureDataSheet::OnInitDialog()
{
	BOOL bResult = CPropertySheet::OnInitDialog();
}

AnswerRe: Exception Error. Pin
Code-o-mat23-Jul-09 6:17
Code-o-mat23-Jul-09 6:17 
GeneralRe: Exception Error. Pin
FISH78623-Jul-09 6:32
FISH78623-Jul-09 6:32 
GeneralRe: Exception Error. Pin
FISH78627-Jul-09 3:37
FISH78627-Jul-09 3:37 
GeneralRe: Exception Error. Pin
Code-o-mat27-Jul-09 3:40
Code-o-mat27-Jul-09 3:40 
GeneralRe: Exception Error. Pin
FISH78628-Jul-09 10:22
FISH78628-Jul-09 10:22 
GeneralRe: Exception Error. Pin
Code-o-mat28-Jul-09 10:46
Code-o-mat28-Jul-09 10:46 
GeneralRe: Exception Error. Pin
FISH78628-Jul-09 11:09
FISH78628-Jul-09 11:09 
GeneralRe: Exception Error. Pin
Code-o-mat29-Jul-09 0:24
Code-o-mat29-Jul-09 0:24 
GeneralRe: Exception Error. Pin
FISH78629-Jul-09 9:36
FISH78629-Jul-09 9:36 
GeneralRe: Exception Error. Pin
Code-o-mat29-Jul-09 9:41
Code-o-mat29-Jul-09 9:41 
QuestionHow to put something in status bar at first launch ? Pin
mesajflaviu23-Jul-09 3:52
mesajflaviu23-Jul-09 3:52 
Questionconst in class as a member variable? Pin
sam_psycho23-Jul-09 3:43
sam_psycho23-Jul-09 3:43 
AnswerRe: const in class as a member variable? Pin
Cedric Moonen23-Jul-09 3:47
Cedric Moonen23-Jul-09 3:47 
GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 3:56
sam_psycho23-Jul-09 3:56 
GeneralRe: const in class as a member variable? Pin
Cedric Moonen23-Jul-09 3:58
Cedric Moonen23-Jul-09 3:58 
AnswerRe: const in class as a member variable? Pin
CPallini23-Jul-09 3:53
mveCPallini23-Jul-09 3:53 
GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 4:20
sam_psycho23-Jul-09 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.