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

C / C++ / MFC

 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
SoMad21-Mar-13 13:06
professionalSoMad21-Mar-13 13:06 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
Vaclav_21-Mar-13 15:12
Vaclav_21-Mar-13 15:12 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
SoMad21-Mar-13 17:58
professionalSoMad21-Mar-13 17:58 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
Vaclav_22-Mar-13 4:23
Vaclav_22-Mar-13 4:23 
AnswerSOLVED DirectShow is a flop – any other video library out there? Pin
Vaclav_21-Mar-13 10:20
Vaclav_21-Mar-13 10:20 
AnswerRe: DirectShow is a flop – any other video library out there? Pin
Joe Woodbury26-Mar-13 9:19
professionalJoe Woodbury26-Mar-13 9:19 
RantRe: DirectShow is a flop – any other video library out there? Pin
Vaclav_26-Mar-13 11:39
Vaclav_26-Mar-13 11:39 
Questionfstream file sharing among mutiple .cpps Pin
anne_rose19-Mar-13 20:55
anne_rose19-Mar-13 20:55 
Hi ,

I have declared one static fstream file under header.h
static ofstream myfile_logs("D:\\Elec...");

main.cpp
#include "header.h"

int main(...)
{
cal_mem();
verify_data();
}

verify_data()
{
myfile_logs << "verify...";
...
}
//end of main .cpp

commonFunc.cpp
#include "header.h"

void cal_mem()
{
myfile_logs << "calculate Mem";
...
..
}
//end of cal_mem
When i run this program, on opening the log file
i get only

"calculate Mem" text displayed
the control does come to verify_data but the file is not appended or updated with verify.. text
The log file seems to work only for commonFunc.cpp
how to have this log file appended for multiple cpps?

Quite urgent to fix this

Thanks
Anna
AnswerRe: fstream file sharing among mutiple .cpps Pin
Richard MacCutchan19-Mar-13 22:54
mveRichard MacCutchan19-Mar-13 22:54 
AnswerRe: fstream file sharing among mutiple .cpps Pin
Stephen Hewitt20-Mar-13 2:24
Stephen Hewitt20-Mar-13 2:24 
AnswerRe: fstream file sharing among mutiple .cpps Pin
jschell20-Mar-13 8:42
jschell20-Mar-13 8:42 
Questiontabcontrols Pin
Patrick G. Spectre19-Mar-13 5:35
Patrick G. Spectre19-Mar-13 5:35 
AnswerRe: tabcontrols Pin
Marco Bertschi19-Mar-13 5:56
protectorMarco Bertschi19-Mar-13 5:56 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 6:07
Patrick G. Spectre19-Mar-13 6:07 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 6:09
protectorMarco Bertschi19-Mar-13 6:09 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 6:12
Patrick G. Spectre19-Mar-13 6:12 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 6:14
protectorMarco Bertschi19-Mar-13 6:14 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 6:20
Patrick G. Spectre19-Mar-13 6:20 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 6:24
protectorMarco Bertschi19-Mar-13 6:24 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 6:31
Patrick G. Spectre19-Mar-13 6:31 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 6:44
protectorMarco Bertschi19-Mar-13 6:44 
QuestionRe: tabcontrols Pin
David Crow19-Mar-13 9:48
David Crow19-Mar-13 9:48 
QuestionIs there a syslog library for native C++ which runs under Windows? Pin
Marco Bertschi18-Mar-13 22:14
protectorMarco Bertschi18-Mar-13 22:14 
AnswerRe: Is there a syslog library for native C++ which runs under Windows? Pin
pasztorpisti19-Mar-13 2:02
pasztorpisti19-Mar-13 2:02 
GeneralRe: Is there a syslog library for native C++ which runs under Windows? Pin
Marco Bertschi19-Mar-13 5:15
protectorMarco Bertschi19-Mar-13 5:15 

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.