Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 1:44
mveRichard MacCutchan28-Jan-10 1:44 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:21
nenfa28-Jan-10 3:21 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:28
nenfa28-Jan-10 3:28 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 5:07
mveRichard MacCutchan28-Jan-10 5:07 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 21:52
nenfa28-Jan-10 21:52 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 22:22
mveRichard MacCutchan28-Jan-10 22:22 
GeneralRe: win7 & vista's problem Pin
nenfa5-Feb-10 15:24
nenfa5-Feb-10 15:24 
QuestionConverting TCHAR to LPSTR to be used in CreateProcess [modified] Pin
lazy_panther28-Jan-10 0:57
lazy_panther28-Jan-10 0:57 
Hi,

I need to create a process like

LPTSTR szCmdline[] = TEXT("ffmpeg -i " + ofn.lpstrFile + " -r 1 -ss 00:00:10 -vframes 1 -f image2 " + Buffer + "\\Initframe10.bmp");

For this I will be using CreateProcess API but problem is how to convert TCHAR to a LPTSTR lpCommandLine to be passed to CreateProcess?

ofn.lpstrFile (LPTSTR type) is obtained as outcome of GetOpenFileName API Call and Buffer (TCHAR type) is obtained as GetTempPath.

I get compilation errors which I am not able to fix. (I am new to Win32 programming so this may sound naive).

Can someone please help me in fixing the errors?

Thanks

modified on Thursday, January 28, 2010 7:30 AM

AnswerRe: Converting TCHAR to LPSTR to be used in CreateProcess Pin
Rajesh R Subramanian28-Jan-10 1:04
professionalRajesh R Subramanian28-Jan-10 1:04 
GeneralRe: Converting TCHAR to LPSTR to be used in CreateProcess Pin
lazy_panther28-Jan-10 1:30
lazy_panther28-Jan-10 1:30 
GeneralRe: Converting TCHAR to LPSTR to be used in CreateProcess Pin
Rajesh R Subramanian28-Jan-10 2:05
professionalRajesh R Subramanian28-Jan-10 2:05 
AnswerRe: Converting TCHAR to LPSTR to be used in CreateProcess Pin
KingsGambit28-Jan-10 1:06
KingsGambit28-Jan-10 1:06 
AnswerRe: Converting TCHAR to LPSTR to be used in CreateProcess Pin
Richard MacCutchan28-Jan-10 1:47
mveRichard MacCutchan28-Jan-10 1:47 
QuestionAbout select() in multithread Pin
luderjane28-Jan-10 0:10
luderjane28-Jan-10 0:10 
QuestionRe: About select() in multithread Pin
Moak28-Jan-10 8:00
Moak28-Jan-10 8:00 
AnswerRe: About select() in multithread Pin
luderjane1-Feb-10 20:16
luderjane1-Feb-10 20:16 
QuestionPainting in Win32, MFC and WPF ? Pin
Sameerkumar Namdeo27-Jan-10 23:19
Sameerkumar Namdeo27-Jan-10 23:19 
AnswerRe: Painting in Win32, MFC and WPF ? Pin
KingsGambit28-Jan-10 0:06
KingsGambit28-Jan-10 0:06 
QuestionCDocTemplate labelling a file yesAlreadyOpen after a document close Pin
maycockt27-Jan-10 23:02
maycockt27-Jan-10 23:02 
AnswerRe: CDocTemplate labelling a file yesAlreadyOpen after a document close Pin
Richard MacCutchan28-Jan-10 1:51
mveRichard MacCutchan28-Jan-10 1:51 
AnswerRe: CDocTemplate labelling a file yesAlreadyOpen after a document close Pin
krmed28-Jan-10 2:47
krmed28-Jan-10 2:47 
QuestionProblem in loading custom menu Pin
Anu_Bala27-Jan-10 21:31
Anu_Bala27-Jan-10 21:31 
AnswerRe: Problem in loading custom menu Pin
KingsGambit28-Jan-10 0:09
KingsGambit28-Jan-10 0:09 
AnswerRe: Problem in loading custom menu Pin
krmed28-Jan-10 2:32
krmed28-Jan-10 2:32 
QuestionDeselecting Tree Node Item in MFC Pin
RS.Ratheesh27-Jan-10 19:53
RS.Ratheesh27-Jan-10 19:53 

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.