Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: Pure virtual methods Pinmemberjschell11-Jul-12 8:40 
QuestionSTL Containers store a copy? Pinmemberpiul9-Jul-12 22:49 
AnswerRe: STL Containers store a copy? PinmvpRichard MacCutchan9-Jul-12 23:07 
GeneralRe: STL Containers store a copy? Pinmemberpiul9-Jul-12 23:20 
AnswerRe: STL Containers store a copy? PinmemberAescleal10-Jul-12 7:11 
GeneralRe: STL Containers store a copy? PinmemberStefan_Lang10-Jul-12 23:10 
GeneralRe: STL Containers store a copy? PinmvpRichard MacCutchan11-Jul-12 3:05 
QuestionProcess Pinmembersarfaraznawaz9-Jul-12 21:25 
hi
i am calling the video player exe in my application that will show preview for the user.
now the problems is that i want to disable the child window or window untill this exe run.after completion of preview the window should enable .
 
Here is my code :
void CPreview::OnpreviewBtnClk()
{
	::MessageBox(m_hWnd,_T("here is the preview "),_T("INFORMATION"),MB_ICONINFORMATION);
	
	TCHAR szCmdline[MAX_PATH];
	CString szWindowTitle = _T("rs-mplayer");
	VERIFY(::GetModuleFileName(AfxGetApp()->m_hInstance, szCmdline, _MAX_PATH));			
	szCmdline [StrRChr (szCmdline, NULL, _T('\\')) - szCmdline] = _T('\0');
	_tcscat_s(szCmdline, _T("\\rs-mplayer.exe /"));
 
 	ShellExecute(NULL,_T("open"),szCmdline,NULL,sourceFileName,SW_SHOWNORMAL);
 	
//	ProcessID = GetProcessId(szWindowTitle);
 
 	Sleep(500);
 
 	CWnd *pOtherWnd = CWnd::FindWindow(NULL, szWindowTitle);
 	h_Rs_playerProcessId  =pOtherWnd;
 
 	if (pOtherWnd)
 	{
		//ProcessID = GetProcessId(pOtherWnd);
		
 		MYDATA      m_mydata;
 		wcscpy(m_mydata.m_pName,sourceFileName);
 		m_mydata.m_bNameLength = (BYTE)sourceFileName.GetLength();
 		m_mydata.m_ullNodeSize =   m_li64FileSize.QuadPart;
 
 		COPYDATASTRUCT cpd;
 		cpd.dwData = 1;
 		cpd.cbData = sizeof(MYDATA);
 		cpd.lpData = (void*)&m_mydata;
		//GetProcessTimes(h_Rs_playerProcessId,);
 
 		copyDataResult = pOtherWnd->SendMessage(WM_COPYDATA,
 			(WPARAM)AfxGetApp()->m_pMainWnd->GetSafeHwnd(),
 			(LPARAM)&cpd);
 
 	} 
 	ProcessID;
	
	
	// PreviewFile(szCmdline, sourceFileName, szWindowTitle,  m_li64FileSize.QuadPart);
	<pre><pre>



 
}  

Please reply me soon
got struct from past two days
Best Regards
sarfaraz
AnswerRe: Process PinmemberCode-o-mat9-Jul-12 23:21 
GeneralRe: Process Pinmembersarfaraznawaz11-Jul-12 2:27 
GeneralRe: Process PinmemberCode-o-mat11-Jul-12 3:12 
GeneralRe: Process Pinmembersarfaraznawaz11-Jul-12 21:14 
QuestionTooltips can't display in CMainFrame::CFrameWnd Pinmemberussthamcn9-Jul-12 3:55 
AnswerRe: Tooltips can't display in CMainFrame::CFrameWnd Pinmemberussthamcn10-Jul-12 3:04 
QuestionRe: Tooltips can't display in CMainFrame::CFrameWnd PinmemberDavidCrow10-Jul-12 4:53 
QuestionHow to Undo/Redo drawing operation in a dialog based application.? Pinmembermbatra319-Jul-12 1:55 
AnswerRe: How to Undo/Redo drawing operation in a dialog based application.? PinmemberChris Losinger9-Jul-12 2:20 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? [modified] Pinmembermbatra319-Jul-12 2:32 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? [modified] PinmemberChris Losinger9-Jul-12 3:14 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? PinmemberMaximilien9-Jul-12 3:18 
AnswerRe: How to Undo/Redo drawing operation in a dialog based application.? PinmvpCPallini9-Jul-12 2:20 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? [modified] Pinmembermbatra319-Jul-12 2:33 
AnswerRe: How to Undo/Redo drawing operation in a dialog based application.? Pinmembersunilkpv10-Jul-12 0:01 
Generalneed help Opencv with MFC (Solved) [modified] Pinmemberjawadali4779-Jul-12 0:44 
GeneralRe: need help Opencv with MFC PinmvpCPallini9-Jul-12 0:57 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid