Click here to Skip to main content
15,917,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what happens in following code exactly? Pin
sam_psycho23-Jul-09 6:11
sam_psycho23-Jul-09 6:11 
AnswerRe: what happens in following code exactly? Pin
Iain Clarke, Warrior Programmer23-Jul-09 9:06
Iain Clarke, Warrior Programmer23-Jul-09 9:06 
AnswerRe: what happens in following code exactly? Pin
Joe Woodbury23-Jul-09 10:44
professionalJoe Woodbury23-Jul-09 10:44 
Question[mfc] restart other process Pin
rahuljin23-Jul-09 5:51
rahuljin23-Jul-09 5:51 
AnswerRe: [mfc] restart other process Pin
ThatsAlok23-Jul-09 6:05
ThatsAlok23-Jul-09 6:05 
GeneralRe: [mfc] restart other process Pin
rahuljin23-Jul-09 7:01
rahuljin23-Jul-09 7:01 
AnswerRe: [mfc] restart other process Pin
Code-o-mat23-Jul-09 6:11
Code-o-mat23-Jul-09 6:11 
GeneralRe: [mfc] restart other process Pin
rahuljin23-Jul-09 6:52
rahuljin23-Jul-09 6:52 
GeneralRe: [mfc] restart other process Pin
Code-o-mat23-Jul-09 7:09
Code-o-mat23-Jul-09 7:09 
AnswerRe: [mfc] restart other process Pin
Rajesh R Subramanian23-Jul-09 7:55
professionalRajesh R Subramanian23-Jul-09 7:55 
GeneralRe: [mfc] restart other process Pin
rahuljin23-Jul-09 8:27
rahuljin23-Jul-09 8:27 
QuestionRe: [mfc] restart other process Pin
Rajesh R Subramanian23-Jul-09 9:53
professionalRajesh R Subramanian23-Jul-09 9:53 
AnswerRe: [mfc] restart other process Pin
rahuljin23-Jul-09 10:09
rahuljin23-Jul-09 10:09 
GeneralRe: [mfc] restart other process Pin
ThatsAlok23-Jul-09 20:00
ThatsAlok23-Jul-09 20:00 
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 

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.