Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Child Window Not Recieving Keyboard Input Properly Pin
Johan Rosengren26-Jun-04 0:15
Johan Rosengren26-Jun-04 0:15 
GeneralGetting around vanishing pointers Pin
brdavid25-Jun-04 14:38
brdavid25-Jun-04 14:38 
GeneralRe: Getting around vanishing pointers Pin
bneacetp25-Jun-04 16:31
bneacetp25-Jun-04 16:31 
GeneralRe: Getting around vanishing pointers Pin
Michael Dunn25-Jun-04 17:06
sitebuilderMichael Dunn25-Jun-04 17:06 
GeneralRe: Getting around vanishing pointers Pin
CaesarCZ26-Jun-04 6:48
CaesarCZ26-Jun-04 6:48 
GeneralRe: Getting around vanishing pointers Pin
brdavid26-Jun-04 8:22
brdavid26-Jun-04 8:22 
GeneralBrightness of LCD Display Pin
Blake Miller25-Jun-04 12:52
Blake Miller25-Jun-04 12:52 
GeneralTerminate word application Pin
elephantstar25-Jun-04 12:42
elephantstar25-Jun-04 12:42 
Hi there,

I created a process that opens up a word file and its contents are parsed. Now, when the user tries to open up the exact same file, it doesn't parse. Is it because the file is currently open? How do I check that and would I need to terminate the process before creating a new one? Here is what I have so far.

Thanks!

/*************************************************/
STARTUPINFO stStartUpInfo;
PROCESS_INFORMATION pProcessInfo = new PROCESS_INFORMATION;

memset(&startInfo, 0, sizeof(STARTUPINFO));

startInfo.cb = sizeof(STARTUPINFO);

startInfo.dwFlags = STARTF_USESHOWWINDOW;
startInfo.wShowWindow = SW_SHOWDEFAULT;

CreateProcess(NULL, cmdline, NULL, NULL, FALSE,
NORMAL_PRIORITY_CLASS, NULL,
NULL, &startInfo, procInfo);

ParseFile();

/********************************/
int CParser::ParseFile(CString filename)
{
int ret = 0;
CStdioFile fname;
if (fname.Open(filename, CFile::modeRead))
{
//parsing code here
}
else
{
ret = -1;
fname.Close();
}
return ret;
}
GeneralRe: How to send Msg to child window Pin
Sumit Kapoor25-Jun-04 11:03
Sumit Kapoor25-Jun-04 11:03 
GeneralRe: How to send Msg to child window Pin
Christopher Lloyd25-Jun-04 15:22
Christopher Lloyd25-Jun-04 15:22 
QuestionHow to send Msg to child window Pin
Sumit Kapoor25-Jun-04 10:21
Sumit Kapoor25-Jun-04 10:21 
AnswerRe: How to send Msg to child window Pin
Jeremy Falcon25-Jun-04 10:36
professionalJeremy Falcon25-Jun-04 10:36 
GeneralRe: How to send Msg to child window Pin
Sumit Kapoor25-Jun-04 10:48
Sumit Kapoor25-Jun-04 10:48 
AnswerRe: How to send Msg to child window Pin
David Crow25-Jun-04 10:38
David Crow25-Jun-04 10:38 
GeneralRe: How to send Msg to child window Pin
Sumit Kapoor25-Jun-04 10:47
Sumit Kapoor25-Jun-04 10:47 
GeneralRe: How to send Msg to child window Pin
David Crow25-Jun-04 10:55
David Crow25-Jun-04 10:55 
Generalrun HTML application from my MFC program Pin
Michae_geffen25-Jun-04 9:44
Michae_geffen25-Jun-04 9:44 
GeneralRe: run HTML application from my MFC program Pin
Michael Dunn25-Jun-04 9:56
sitebuilderMichael Dunn25-Jun-04 9:56 
GeneralRe: run HTML application from my MFC program Pin
David Crow25-Jun-04 10:24
David Crow25-Jun-04 10:24 
Generalproblem with old code about pointer!!! Pin
lewislewis_lewis25-Jun-04 9:17
lewislewis_lewis25-Jun-04 9:17 
GeneralRe: problem with old code about pointer!!! Pin
David Crow25-Jun-04 9:51
David Crow25-Jun-04 9:51 
GeneralRe: problem with old code about pointer!!! Pin
lewislewis_lewis25-Jun-04 10:00
lewislewis_lewis25-Jun-04 10:00 
GeneralRe: problem with old code about pointer!!! Pin
David Crow25-Jun-04 10:30
David Crow25-Jun-04 10:30 
GeneralRe: problem with old code about pointer!!! Pin
Anonymous25-Jun-04 15:34
Anonymous25-Jun-04 15:34 
GeneralRe: problem with old code about pointer!!! Pin
Michael Dunn25-Jun-04 9:59
sitebuilderMichael Dunn25-Jun-04 9:59 

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.