Click here to Skip to main content
15,920,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: implementation and interface Pin
Joaquín M López Muñoz6-Nov-03 0:14
Joaquín M López Muñoz6-Nov-03 0:14 
GeneralRe: implementation and interface Pin
valikac6-Nov-03 5:44
valikac6-Nov-03 5:44 
GeneralCustomDraw in Listctrl Pin
super5-Nov-03 22:25
professionalsuper5-Nov-03 22:25 
GeneralRe: CustomDraw in Listctrl Pin
Dominik Reichl5-Nov-03 23:23
Dominik Reichl5-Nov-03 23:23 
GeneralCreating forms for outlook with C++ Pin
Anonymous5-Nov-03 22:04
Anonymous5-Nov-03 22:04 
GeneralGlobal variables???? VC++ 6.0 Pin
Anonymous5-Nov-03 21:03
Anonymous5-Nov-03 21:03 
GeneralRe: Global variables???? VC++ 6.0 Pin
Ted Ferenc5-Nov-03 21:56
Ted Ferenc5-Nov-03 21:56 
GeneralRe: Global variables???? VC++ 6.0 Pin
geo_m6-Nov-03 5:38
geo_m6-Nov-03 5:38 
that's because you probably have something like
MyStruct MyObj;
in the header - that means compiler generated as many instances as you have cpp files where you included this header (directly or indirectly) and then he cannot decide which one he have to use.

You can either use microsoft specific way (hope it will work for classes, I never tried it)
__declspec( selectany ) MyStruct MyObj;
or define it specifically in one cpp (can be special for that or stdafx.cpp can also help) and just refer to this in header (extern)

or you can look to the singleton pattern - if it is what you really want.


hope this helps
GeneralRe: Global variables???? VC++ 6.0 Pin
David Chamberlain6-Nov-03 6:05
David Chamberlain6-Nov-03 6:05 
GeneralCProgressCtrl + Threads Pin
KKR5-Nov-03 19:35
KKR5-Nov-03 19:35 
GeneralRe: CProgressCtrl + Threads Pin
valikac6-Nov-03 5:46
valikac6-Nov-03 5:46 
GeneralProblems in changing TrayIcon Pin
Boby.George5-Nov-03 18:52
professionalBoby.George5-Nov-03 18:52 
GeneralRead a jpeg file Pin
Abhi@Work5-Nov-03 18:16
Abhi@Work5-Nov-03 18:16 
GeneralRe: Read a jpeg file Pin
algol5-Nov-03 21:51
algol5-Nov-03 21:51 
GeneralRe: Read a jpeg file Pin
Joe Woodbury6-Nov-03 10:45
professionalJoe Woodbury6-Nov-03 10:45 
GeneralRe: Read a jpeg file Pin
Abhi@Work6-Nov-03 23:09
Abhi@Work6-Nov-03 23:09 
QuestionIs there any expert who can answer this question in this world? Pin
percyvimal5-Nov-03 18:15
percyvimal5-Nov-03 18:15 
AnswerRe: Is there any expert who can answer this question in this world? Pin
melwyn5-Nov-03 23:37
melwyn5-Nov-03 23:37 
AnswerRe: Is there any expert who can answer this question in this world? Pin
inocraM6-Nov-03 3:02
inocraM6-Nov-03 3:02 
GeneralRe: Is there any expert who can answer this question in this world? Pin
percyvimal6-Nov-03 16:59
percyvimal6-Nov-03 16:59 
Generalas soon as possible be come good Programmer ! Pin
quyetnh5-Nov-03 17:11
quyetnh5-Nov-03 17:11 
GeneralRe: as soon as possible be come good Programmer ! Pin
papaya_zm5-Nov-03 17:45
papaya_zm5-Nov-03 17:45 
GeneralRe: as soon as possible be come good Programmer ! Pin
paracha35-Nov-03 17:48
paracha35-Nov-03 17:48 
GeneralRe: as soon as possible be come good Programmer ! Pin
quyetnh6-Nov-03 14:15
quyetnh6-Nov-03 14:15 
GeneralCore sdk problems Pin
schezz5-Nov-03 17:10
schezz5-Nov-03 17:10 

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.