Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to pass a paremeters to Dialog Pin
CPallini19-Aug-08 21:33
mveCPallini19-Aug-08 21:33 
AnswerRe: How to pass a paremeters to Dialog Pin
ptr_Electron19-Aug-08 21:49
ptr_Electron19-Aug-08 21:49 
QuestionRe: How to pass a paremeters to Dialog Pin
CPallini19-Aug-08 21:50
mveCPallini19-Aug-08 21:50 
GeneralRe: How to pass a paremeters to Dialog Pin
Cedric Moonen19-Aug-08 21:51
Cedric Moonen19-Aug-08 21:51 
GeneralRe: How to pass a paremeters to Dialog Pin
David Crow20-Aug-08 3:37
David Crow20-Aug-08 3:37 
GeneralRe: How to pass a paremeters to Dialog Pin
ptr_Electron19-Aug-08 21:52
ptr_Electron19-Aug-08 21:52 
QuestionRe: How to pass a paremeters to Dialog Pin
CPallini19-Aug-08 22:18
mveCPallini19-Aug-08 22:18 
AnswerRe: How to pass a paremeters to Dialog Pin
ptr_Electron20-Aug-08 2:48
ptr_Electron20-Aug-08 2:48 
MainFrm.cpp
MainFrm::OnStart()
{
....

	popupDlg= new CPrgpopup(NULL, iProgressBarMaxVal,iProgressBarStepVal);
	hwnd=AfxGetApp()->GetMainWnd()->GetSafeHwnd();
	THREADSTRUCT5 *_param = new THREADSTRUCT5;
	_param->_this = this;

	thMPrgBar=AfxBeginThread (StartProgressBarThread, _param);

.....

}




UINT MainFrame::StartProgressBarThread (LPVOID param)
{
	THREADSTRUCT5*	ts = (THREADSTRUCT5*)param;

	ts->_this->popupDlg->Create(IDD_PROGRESS_BAR_DIALOG,NULL);
	ts->_this->popupDlg->ShowWindow(TRUE);
}

Prgpopup.cpp

CPrgpopup::CPrgpopup(CWnd* pParent, int iPrgMaxVal,int iPrgStpVal)
{
	//{{AFX_DATA_INIT(CPrgpopup)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	iPrgBarMaxVal = iPrgMaxVal;
	iPrgBarStepVal = iPrgStpVal;
	
}


---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: .....\DebugMDd\navigat.exe
File: strcore.cpp
Line: 512

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------


---------------------------
navigator.exe - Application Error
---------------------------
The exception Breakpoint

A breakpoint has been reached.

(0x80000003) occurred in the application at location 0x77f9193c.


Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------



---------------------------
navigator.exe - Application Error
---------------------------
The exception Breakpoint

A breakpoint has been reached.

(0x80000003) occurred in the application at location 0x77f9193c.


Click on OK to terminate the program
---------------------------
OK
---------------------------
GeneralRe: How to pass a paremeters to Dialog Pin
CPallini20-Aug-08 21:01
mveCPallini20-Aug-08 21:01 
AnswerRe: How to pass a paremeters to Dialog Pin
toxcct19-Aug-08 21:57
toxcct19-Aug-08 21:57 
GeneralRe: How to pass a paremeters to Dialog Pin
ptr_Electron19-Aug-08 22:19
ptr_Electron19-Aug-08 22:19 
AnswerRe: How to pass a paremeters to Dialog Pin
KarstenK19-Aug-08 22:01
mveKarstenK19-Aug-08 22:01 
Questionerror c101008a Pin
NewVC++19-Aug-08 20:22
NewVC++19-Aug-08 20:22 
AnswerRe: error c101008a Pin
KarstenK19-Aug-08 20:28
mveKarstenK19-Aug-08 20:28 
AnswerRe: error c101008a Pin
David Crow20-Aug-08 3:39
David Crow20-Aug-08 3:39 
QuestionHow to open Pop-up Blocker Settings window of IE programmatically Pin
Rahul Vaishnav19-Aug-08 20:08
Rahul Vaishnav19-Aug-08 20:08 
AnswerRe: How to open Pop-up Blocker Settings window of IE programmatically Pin
_AnsHUMAN_ 19-Aug-08 20:31
_AnsHUMAN_ 19-Aug-08 20:31 
GeneralRe: How to open Pop-up Blocker Settings window of IE programmatically Pin
Rahul Vaishnav19-Aug-08 20:39
Rahul Vaishnav19-Aug-08 20:39 
AnswerRe: How to open Pop-up Blocker Settings window of IE programmatically Pin
Naveen19-Aug-08 20:36
Naveen19-Aug-08 20:36 
GeneralRe: How to open Pop-up Blocker Settings window of IE programmatically Pin
Naveen19-Aug-08 20:49
Naveen19-Aug-08 20:49 
GeneralRe: How to open Pop-up Blocker Settings window of IE programmatically Pin
Rahul Vaishnav19-Aug-08 21:14
Rahul Vaishnav19-Aug-08 21:14 
QuestionError Pin
NewVC++19-Aug-08 20:03
NewVC++19-Aug-08 20:03 
AnswerRe: Error Pin
Stephen Hewitt19-Aug-08 20:08
Stephen Hewitt19-Aug-08 20:08 
GeneralRe: Error Pin
NewVC++19-Aug-08 20:18
NewVC++19-Aug-08 20:18 
GeneralRe: Error Pin
Stephen Hewitt19-Aug-08 20:22
Stephen Hewitt19-Aug-08 20:22 

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.