Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: directshow Pin
Trollslayer9-May-03 1:18
mentorTrollslayer9-May-03 1:18 
Generalwhere?!?! Pin
sharlila9-May-03 7:50
sharlila9-May-03 7:50 
Generaltry, throw and catch statement Pin
Raphael Kindt8-May-03 23:53
Raphael Kindt8-May-03 23:53 
GeneralRe: try, throw and catch statement Pin
G. Steudtel9-May-03 1:16
G. Steudtel9-May-03 1:16 
GeneralRe: try, throw and catch statement Pin
Raphael Kindt9-May-03 1:35
Raphael Kindt9-May-03 1:35 
GeneralRe: try, throw and catch statement Pin
jhwurmbach9-May-03 2:14
jhwurmbach9-May-03 2:14 
QuestionHow to write protect a folder and files Pin
seewan8-May-03 23:52
seewan8-May-03 23:52 
Generalvariables in namespaces Pin
Themis8-May-03 23:26
Themis8-May-03 23:26 
Hi, I want to ask if I can have a variable in a namespace that all namespace's functions can hava access to it, for example:

<br />
namespace foo<br />
{<br />
  int x;<br />
<br />
  extern void yak();<br />
  extern void bar();<br />
}<br />
<br />
void foo::yak()<br />
{<br />
  x++;<br />
}<br />
<br />
void foo::bar()<br />
{<br />
  x--;<br />
}<br />


Can I make both yak() and bar() to operate on x? I get a linking error this way, saying that I've multiple definitions of int foo::x.

Thank you, Themis
GeneralRe: variables in namespaces Pin
Johnny ²9-May-03 1:01
Johnny ²9-May-03 1:01 
QuestionResource leak? Pin
Gavin Jerman8-May-03 23:21
Gavin Jerman8-May-03 23:21 
AnswerRe: Resource leak? Pin
Anonymous9-May-03 1:03
Anonymous9-May-03 1:03 
AnswerRe: Resource leak? Pin
Anders Molin9-May-03 1:16
professionalAnders Molin9-May-03 1:16 
GeneralFinding Logged In User Access Level Pin
jerry0davis8-May-03 23:14
jerry0davis8-May-03 23:14 
QuestionSimultaneous sounds? Pin
Gadjuka8-May-03 23:07
Gadjuka8-May-03 23:07 
AnswerRe: Simultaneous sounds? Pin
G. Steudtel9-May-03 0:54
G. Steudtel9-May-03 0:54 
AnswerRe: Simultaneous sounds? Pin
Anonymous9-May-03 0:55
Anonymous9-May-03 0:55 
GeneralInteraction with ActieveX Pin
andreshs18-May-03 22:43
andreshs18-May-03 22:43 
GeneralExtracting the IStream interface from CFile Pin
Anders Sandberg8-May-03 22:28
Anders Sandberg8-May-03 22:28 
GeneralRe: Extracting the IStream interface from CFile Pin
Anonymous8-May-03 23:17
Anonymous8-May-03 23:17 
GeneralRe: Extracting the IStream interface from CFile Pin
Mike Dimmick9-May-03 6:05
Mike Dimmick9-May-03 6:05 
GeneralRe: Extracting the IStream interface from CFile Pin
Anders Sandberg13-May-03 0:06
Anders Sandberg13-May-03 0:06 
GeneralPls Help.. CFtpFileFind Pin
2249178-May-03 20:27
2249178-May-03 20:27 
GeneralRe: Pls Help.. CFtpFileFind Pin
Mahesh Varma9-May-03 18:33
Mahesh Varma9-May-03 18:33 
GeneralRe: Pls Help.. CFtpFileFind Pin
22491722-Jan-04 1:12
22491722-Jan-04 1:12 
QuestionWhy use ???::??? Pin
alex.barylski8-May-03 20:21
alex.barylski8-May-03 20:21 

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.