Click here to Skip to main content
16,015,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: who knows how to play .mpeg files in MFC or by APIs? Pin
Mazdak26-May-02 10:15
Mazdak26-May-02 10:15 
AnswerRe: who knows how to play .mpeg files in MFC or by APIs? Pin
Christian Graus26-May-02 13:22
protectorChristian Graus26-May-02 13:22 
GeneralSubject: Drag & Drop tutorial or sample !!! Pin
Hadi Rezaee26-May-02 8:16
Hadi Rezaee26-May-02 8:16 
GeneralRe: Subject: Drag & Drop tutorial or sample !!! Pin
Nish Nishant26-May-02 14:25
sitebuilderNish Nishant26-May-02 14:25 
GeneralRe: Subject: Drag & Drop tutorial or sample !!! Pin
Hadi Rezaee26-May-02 16:30
Hadi Rezaee26-May-02 16:30 
GeneralGlobal Variables Pin
laphijia26-May-02 6:58
laphijia26-May-02 6:58 
GeneralRe: Global Variables Pin
Paul M Watt26-May-02 6:57
mentorPaul M Watt26-May-02 6:57 
GeneralRe: Global Variables Pin
Christian Graus26-May-02 13:23
protectorChristian Graus26-May-02 13:23 
Two things.

1. the best way to do this is to declare it in stdafx.cpp, and declare it extern in stdafx.h. Then everything can see it

2. doing so is very poor design. If you cannot make it a member of your CWinApp derived class ( assuming you use MFC ), then you should at least wrap it in a namespace so it is globally visible, but not 'global' as such.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
GeneralRe: Global Variables Pin
Rick York26-May-02 13:43
mveRick York26-May-02 13:43 
Generalanother icon question... Pin
l a u r e n26-May-02 6:51
l a u r e n26-May-02 6:51 
GeneralRe: another icon question... Pin
Michael Dunn26-May-02 7:15
sitebuilderMichael Dunn26-May-02 7:15 
GeneralRe: another icon question... Pin
l a u r e n26-May-02 7:28
l a u r e n26-May-02 7:28 
GeneralRe: another icon question... Pin
loket26-May-02 7:36
loket26-May-02 7:36 
GeneralRe: another icon question... Pin
Paul M Watt26-May-02 8:29
mentorPaul M Watt26-May-02 8:29 
QuestionA good design for an interface? Pin
Nnamdi Onyeyiri26-May-02 6:47
Nnamdi Onyeyiri26-May-02 6:47 
AnswerRe: A good design for an interface? Pin
Renjith Ramachandran26-May-02 9:36
Renjith Ramachandran26-May-02 9:36 
Generalsystem tray icon size Pin
l a u r e n26-May-02 6:36
l a u r e n26-May-02 6:36 
GeneralRe: system tray icon size Pin
Paul M Watt26-May-02 6:59
mentorPaul M Watt26-May-02 6:59 
GeneralRe: system tray icon size Pin
Alexandru Savescu26-May-02 10:00
Alexandru Savescu26-May-02 10:00 
GeneralControl Panel API Pin
Deian26-May-02 6:19
Deian26-May-02 6:19 
GeneralRe: Control Panel API Pin
Michael Dunn26-May-02 7:17
sitebuilderMichael Dunn26-May-02 7:17 
GeneralRe: Control Panel API Pin
Deian26-May-02 23:03
Deian26-May-02 23:03 
GeneralFormat() Pin
Steve L.26-May-02 6:13
Steve L.26-May-02 6:13 
GeneralRe: Format() Pin
Eugene Pustovoyt26-May-02 6:17
Eugene Pustovoyt26-May-02 6:17 
GeneralRe: Format() Pin
Steve L.26-May-02 6:24
Steve L.26-May-02 6:24 

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.