Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
The static doesn't do what you're assuming. In a class it makes it "global" (shared by all instances) but at namespace scope it makes the variable private to the compilation unit. Every file that includes your header has it's own stream.

Change the header so it looks like this:
extern ofstream myfile_logs;


In a one .cpp file put in this:
ofstream myfile_logs("D:\\Elec...");

 
Steve

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 
GeneralRe: Is there a syslog library for native C++ which runs under Windows? Pin
pasztorpisti19-Mar-13 12:43
pasztorpisti19-Mar-13 12:43 
AnswerRe: Is there a syslog library for native C++ which runs under Windows? Pin
Albert Holguin19-Mar-13 5:19
professionalAlbert Holguin19-Mar-13 5:19 

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.