Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsimple database system Pin
LamLie`15-Feb-04 20:58
LamLie`15-Feb-04 20:58 
GeneralRe: simple database system Pin
David Crow16-Feb-04 2:41
David Crow16-Feb-04 2:41 
GeneralRe: simple database system Pin
LamLie`16-Feb-04 13:41
LamLie`16-Feb-04 13:41 
GeneralRe: simple database system Pin
Toni7816-Feb-04 15:29
Toni7816-Feb-04 15:29 
GeneralRe: simple database system Pin
LamLie`16-Feb-04 15:36
LamLie`16-Feb-04 15:36 
GeneralRe: simple database system Pin
Toni7816-Feb-04 15:41
Toni7816-Feb-04 15:41 
GeneralRe: simple database system Pin
LamLie`16-Feb-04 15:44
LamLie`16-Feb-04 15:44 
GeneralFile sharing problem Pin
spingkoy15-Feb-04 20:41
spingkoy15-Feb-04 20:41 
Good day,

I'm creating a program that compiles visual C++ program so that i dont
have to switch and make the project active, since i have a lot of projects
on my workspace.I perform the compilation by creating a process so that the
main process could not be affected by its slow compiling..

UINT CompileReleaseMode(LPVOID pParam)
{
::WaitForSingleObject(g_eventStartRelease, INFINITE);
....
....
if(!CreateProcess(NULL,"msdev e:\\app.dsw /MAKE \"app - Win32 Debug" /REBUILD /OUT
c:\\Status.log", NULL, FALSE......);
WaitForSingleObject( pirelease1.hProcess, INFINITE );
}

In my dialog i have a listbox where i could put the filtered compilation message based from the log file(status.log). So i created another thread to read the file(running parallel with the first process) or have it back-up so that i could read the current change of file and reflect to the listbox the filtered message.

My problem now is that when the thread the reads the log file(it generates an error).
How can i access the content of the file or get the last line that have been updated.
(we can see that file has been updated as compilation process.. by executing
type status.log on command prompt.


Thanks a lot and have nice day Smile | :)


sphynxs
GeneralRe: File sharing problem Pin
David Crow16-Feb-04 2:54
David Crow16-Feb-04 2:54 
Generaltypecat varenum to string Pin
Inam15-Feb-04 20:33
Inam15-Feb-04 20:33 
GeneralAfxConnectionAdvise retuning false Pin
Abhi Lahare15-Feb-04 19:41
Abhi Lahare15-Feb-04 19:41 
GeneralRe: AfxConnectionAdvise retuning false Pin
Prakash Nadar15-Feb-04 19:51
Prakash Nadar15-Feb-04 19:51 
GeneralRe: AfxConnectionAdvise retuning false Pin
Abhi Lahare15-Feb-04 20:02
Abhi Lahare15-Feb-04 20:02 
GeneralRe: AfxConnectionAdvise retuning false Pin
Prakash Nadar15-Feb-04 20:11
Prakash Nadar15-Feb-04 20:11 
GeneralRe: AfxConnectionAdvise retuning false Pin
Abhi Lahare15-Feb-04 20:42
Abhi Lahare15-Feb-04 20:42 
GeneralRe: AfxConnectionAdvise retuning false Pin
Prakash Nadar15-Feb-04 22:03
Prakash Nadar15-Feb-04 22:03 
GeneralCStatic background color problem Pin
Coremn15-Feb-04 19:32
Coremn15-Feb-04 19:32 
GeneralRe: CStatic background color problem Pin
Prakash Nadar15-Feb-04 19:55
Prakash Nadar15-Feb-04 19:55 
GeneralRe: CStatic background color problem Pin
Coremn16-Feb-04 11:45
Coremn16-Feb-04 11:45 
GeneralRe: CStatic background color problem Pin
Prakash Nadar16-Feb-04 16:40
Prakash Nadar16-Feb-04 16:40 
GeneralSave Bitmap from Device Context to File Pin
Okeno Palmer15-Feb-04 17:14
Okeno Palmer15-Feb-04 17:14 
GeneralRe: Save Bitmap from Device Context to File Pin
Johann Gerell15-Feb-04 20:14
Johann Gerell15-Feb-04 20:14 
GeneralWeird toolbar behaviour Pin
Deian15-Feb-04 16:18
Deian15-Feb-04 16:18 
GeneralHelp...program passes input as 13... Pin
kfresh15-Feb-04 15:47
kfresh15-Feb-04 15:47 
GeneralRe: Help...program passes input as 13... Pin
Andrew Walker15-Feb-04 16:37
Andrew Walker15-Feb-04 16:37 

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.