Click here to Skip to main content
15,565,950 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
SoMad21-Mar-13 18:58
professionalSoMad21-Mar-13 18:58 
GeneralRe: DirectShow is a flop – any other video library out there? Pin
Vaclav_22-Mar-13 5:23
Vaclav_22-Mar-13 5:23 
AnswerSOLVED DirectShow is a flop – any other video library out there? Pin
Vaclav_21-Mar-13 11:20
Vaclav_21-Mar-13 11:20 
AnswerRe: DirectShow is a flop – any other video library out there? Pin
Joe Woodbury26-Mar-13 10:19
professionalJoe Woodbury26-Mar-13 10:19 
RantRe: DirectShow is a flop – any other video library out there? Pin
Vaclav_26-Mar-13 12:39
Vaclav_26-Mar-13 12:39 
Questionfstream file sharing among mutiple .cpps Pin
anne_rose19-Mar-13 21:55
anne_rose19-Mar-13 21:55 
AnswerRe: fstream file sharing among mutiple .cpps Pin
Richard MacCutchan19-Mar-13 23:54
mveRichard MacCutchan19-Mar-13 23:54 
AnswerRe: fstream file sharing among mutiple .cpps Pin
Stephen Hewitt20-Mar-13 3:24
Stephen Hewitt20-Mar-13 3: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 9:42
jschell20-Mar-13 9:42 
Questiontabcontrols Pin
Patrick G. Spectre19-Mar-13 6:35
Patrick G. Spectre19-Mar-13 6:35 
AnswerRe: tabcontrols Pin
Marco Bertschi19-Mar-13 6:56
professionalMarco Bertschi19-Mar-13 6:56 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 7:07
Patrick G. Spectre19-Mar-13 7:07 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 7:09
professionalMarco Bertschi19-Mar-13 7:09 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 7:12
Patrick G. Spectre19-Mar-13 7:12 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 7:14
professionalMarco Bertschi19-Mar-13 7:14 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 7:20
Patrick G. Spectre19-Mar-13 7:20 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 7:24
professionalMarco Bertschi19-Mar-13 7:24 
GeneralRe: tabcontrols Pin
Patrick G. Spectre19-Mar-13 7:31
Patrick G. Spectre19-Mar-13 7:31 
GeneralRe: tabcontrols Pin
Marco Bertschi19-Mar-13 7:44
professionalMarco Bertschi19-Mar-13 7:44 
QuestionRe: tabcontrols Pin
David Crow19-Mar-13 10:48
David Crow19-Mar-13 10:48 
QuestionIs there a syslog library for native C++ which runs under Windows? Pin
Marco Bertschi18-Mar-13 23:14
professionalMarco Bertschi18-Mar-13 23:14 
AnswerRe: Is there a syslog library for native C++ which runs under Windows? Pin
pasztorpisti19-Mar-13 3:02
pasztorpisti19-Mar-13 3:02 
GeneralRe: Is there a syslog library for native C++ which runs under Windows? Pin
Marco Bertschi19-Mar-13 6:15
professionalMarco Bertschi19-Mar-13 6:15 
GeneralRe: Is there a syslog library for native C++ which runs under Windows? Pin
pasztorpisti19-Mar-13 13:43
pasztorpisti19-Mar-13 13:43 
AnswerRe: Is there a syslog library for native C++ which runs under Windows? Pin
Albert Holguin19-Mar-13 6:19
professionalAlbert Holguin19-Mar-13 6: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.