Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function pointer Pin
Richard MacCutchan21-Mar-13 3:28
mveRichard MacCutchan21-Mar-13 3:28 
QuestionProblem regarding to array in C++ Pin
achylast20-Mar-13 22:00
achylast20-Mar-13 22:00 
AnswerRe: Problem regarding to array in C++ Pin
Richard MacCutchan20-Mar-13 22:48
mveRichard MacCutchan20-Mar-13 22:48 
QuestionRe: Problem regarding to array in C++ Pin
achylast25-Mar-13 15:36
achylast25-Mar-13 15:36 
AnswerRe: Problem regarding to array in C++ Pin
Richard MacCutchan25-Mar-13 23:31
mveRichard MacCutchan25-Mar-13 23:31 
AnswerRe: Problem regarding to array in C++ Pin
Marco Bertschi21-Mar-13 0:12
protectorMarco Bertschi21-Mar-13 0:12 
QuestionWinsock Error 10035 Pin
john563220-Mar-13 19:26
john563220-Mar-13 19:26 
AnswerRe: Winsock Error 10035 Pin
Jochen Arndt20-Mar-13 22:09
professionalJochen Arndt20-Mar-13 22:09 
GeneralRe: Winsock Error 10035 Pin
john563220-Mar-13 22:43
john563220-Mar-13 22:43 
GeneralRe: Winsock Error 10035 Pin
Jochen Arndt20-Mar-13 23:03
professionalJochen Arndt20-Mar-13 23:03 
QuestionDirectShow is a flop – any other video library out there? Pin
Vaclav_20-Mar-13 17:06
Vaclav_20-Mar-13 17:06 
AnswerRe: DirectShow is a flop – any other video library out there? Pin
SoMad20-Mar-13 19:04
professionalSoMad20-Mar-13 19:04 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
Vaclav_21-Mar-13 4:31
Vaclav_21-Mar-13 4:31 
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 

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.