Click here to Skip to main content
12,404,478 members (69,208 online)

C / C++ / MFC

 
AnswerRe: how to get a short file name before file creation? Pin
jschell11-Jul-12 8:37
memberjschell11-Jul-12 8:37 
GeneralRe: how to get a short file name before file creation? Pin
DavidCrow11-Jul-12 9:50
memberDavidCrow11-Jul-12 9:50 
GeneralRe: how to get a short file name before file creation? Pin
jschell12-Jul-12 10:19
memberjschell12-Jul-12 10:19 
GeneralRe: how to get a short file name before file creation? Pin
Le@rner31-Jul-12 1:28
memberLe@rner31-Jul-12 1:28 
QuestionPure virtual methods Pin
Rocky65110-Jul-12 23:12
memberRocky65110-Jul-12 23:12 
GeneralRe: Pure virtual methods Pin
pasztorpisti11-Jul-12 0:27
memberpasztorpisti11-Jul-12 0:27 
AnswerRe: Pure virtual methods Pin
jschell11-Jul-12 8:40
memberjschell11-Jul-12 8:40 
QuestionSTL Containers store a copy? Pin
piul9-Jul-12 22:49
memberpiul9-Jul-12 22:49 
AnswerRe: STL Containers store a copy? Pin
Richard MacCutchan9-Jul-12 23:07
mvpRichard MacCutchan9-Jul-12 23:07 
GeneralRe: STL Containers store a copy? Pin
piul9-Jul-12 23:20
memberpiul9-Jul-12 23:20 
AnswerRe: STL Containers store a copy? Pin
Aescleal10-Jul-12 7:11
memberAescleal10-Jul-12 7:11 
GeneralRe: STL Containers store a copy? Pin
Stefan_Lang10-Jul-12 23:10
memberStefan_Lang10-Jul-12 23:10 
GeneralRe: STL Containers store a copy? Pin
Richard MacCutchan11-Jul-12 3:05
mvpRichard MacCutchan11-Jul-12 3:05 
QuestionProcess Pin
sarfaraznawaz9-Jul-12 21:25
membersarfaraznawaz9-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 Pin
Code-o-mat9-Jul-12 23:21
memberCode-o-mat9-Jul-12 23:21 
GeneralRe: Process Pin
sarfaraznawaz11-Jul-12 2:27
membersarfaraznawaz11-Jul-12 2:27 
GeneralRe: Process Pin
Code-o-mat11-Jul-12 3:12
memberCode-o-mat11-Jul-12 3:12 
GeneralRe: Process Pin
sarfaraznawaz11-Jul-12 21:14
membersarfaraznawaz11-Jul-12 21:14 
QuestionTooltips can't display in CMainFrame::CFrameWnd Pin
ussthamcn9-Jul-12 3:55
memberussthamcn9-Jul-12 3:55 
AnswerRe: Tooltips can't display in CMainFrame::CFrameWnd Pin
ussthamcn10-Jul-12 3:04
memberussthamcn10-Jul-12 3:04 
QuestionRe: Tooltips can't display in CMainFrame::CFrameWnd Pin
DavidCrow10-Jul-12 4:53
memberDavidCrow10-Jul-12 4:53 
QuestionHow to Undo/Redo drawing operation in a dialog based application.? Pin
mbatra319-Jul-12 1:55
membermbatra319-Jul-12 1:55 
AnswerRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
Chris Losinger9-Jul-12 2:20
memberChris Losinger9-Jul-12 2:20 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
mbatra319-Jul-12 2:32
membermbatra319-Jul-12 2:32 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
Chris Losinger9-Jul-12 3:14
memberChris Losinger9-Jul-12 3:14 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
Maximilien9-Jul-12 3:18
memberMaximilien9-Jul-12 3:18 
AnswerRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
CPallini9-Jul-12 2:20
mvpCPallini9-Jul-12 2:20 
GeneralRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
mbatra319-Jul-12 2:33
membermbatra319-Jul-12 2:33 
AnswerRe: How to Undo/Redo drawing operation in a dialog based application.? Pin
sunilkpv10-Jul-12 0:01
membersunilkpv10-Jul-12 0:01 
Generalneed help Opencv with MFC (Solved) Pin
jawadali4779-Jul-12 0:44
memberjawadali4779-Jul-12 0:44 
GeneralRe: need help Opencv with MFC Pin
CPallini9-Jul-12 0:57
mvpCPallini9-Jul-12 0:57 
GeneralRe: need help Opencv with MFC Pin
jawadali4779-Jul-12 1:17
memberjawadali4779-Jul-12 1:17 
GeneralRe: need help Opencv with MFC Pin
Richard MacCutchan9-Jul-12 1:30
mvpRichard MacCutchan9-Jul-12 1:30 
GeneralRe: need help Opencv with MFC Pin
jawadali4779-Jul-12 1:59
memberjawadali4779-Jul-12 1:59 
GeneralRe: need help Opencv with MFC Pin
Jochen Arndt9-Jul-12 1:03
memberJochen Arndt9-Jul-12 1:03 
GeneralGeneral driver help Pin
Brandon T. H.9-Jul-12 0:28
memberBrandon T. H.9-Jul-12 0:28 
GeneralRe: General driver help Pin
Richard MacCutchan9-Jul-12 1:23
mvpRichard MacCutchan9-Jul-12 1:23 
GeneralRe: General driver help Pin
Brandon T. H.10-Jul-12 6:55
memberBrandon T. H.10-Jul-12 6:55 
GeneralRe: General driver help Pin
Richard MacCutchan10-Jul-12 9:04
mvpRichard MacCutchan10-Jul-12 9:04 
GeneralRe: General driver help Pin
BilliousBob9-Jul-12 3:04
memberBilliousBob9-Jul-12 3:04 
GeneralRe: General driver help Pin
Brandon T. H.10-Jul-12 9:14
memberBrandon T. H.10-Jul-12 9:14 
GeneralRe: General driver help Pin
BilliousBob10-Jul-12 9:08
memberBilliousBob10-Jul-12 9:08 
GeneralRe: General driver help Pin
Brandon T. H.10-Jul-12 9:13
memberBrandon T. H.10-Jul-12 9:13 
GeneralDifference Between 'Software Architecture' and 'Software Design' Pin
AmbiguousName9-Jul-12 0:06
memberAmbiguousName9-Jul-12 0:06 
GeneralRe: Difference Between 'Software Architecture' and 'Software Design' Pin
CPallini9-Jul-12 0:59
mvpCPallini9-Jul-12 0:59 
GeneralRe: Difference Between 'Software Architecture' and 'Software Design' Pin
Stefan_Lang10-Jul-12 22:47
memberStefan_Lang10-Jul-12 22:47 
GeneralRe: Difference Between 'Software Architecture' and 'Software Design' Pin
jschell9-Jul-12 11:49
memberjschell9-Jul-12 11:49 
GeneralRe: Difference Between 'Software Architecture' and 'Software Design' Pin
Stefan_Lang10-Jul-12 22:23
memberStefan_Lang10-Jul-12 22:23 
QuestionWhat design to use? Pin
gourishsio8-Jul-12 20:40
membergourishsio8-Jul-12 20:40 
AnswerRe: What design to use? Pin
Madhan Mohan Reddy8-Jul-12 23:06
memberMadhan Mohan Reddy8-Jul-12 23:06 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 29 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid