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

C / C++ / MFC

 
Questionwho knows how to play .mpeg files in MFC or by APIs? Pin
Atilla Selem26-May-02 10:15
Atilla Selem26-May-02 10:15 
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 
Pick a single cpp file and declare your global variable in that file like so:

int g_iCount = 0;

Then in the header file that accompanies that cpp file make this declaration:

extern int g_iCount;

The extern tells the compiler that it will find that variable somewhere else in your program when it tries to link all of the modules together. So now all that you have to do is include the header file in any file that wants to use that global variable g_iCount.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Global Variables Pin
Christian Graus26-May-02 13:23
protectorChristian Graus26-May-02 13:23 
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 

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.