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

C / C++ / MFC

 
GeneralRe: Progress Bar Pin
VinayCool12-May-06 0:56
VinayCool12-May-06 0:56 
AnswerRe: Progress Bar Pin
Hamid_RT12-May-06 1:07
Hamid_RT12-May-06 1:07 
GeneralRe: Progress Bar Pin
ThatsAlok12-May-06 3:08
ThatsAlok12-May-06 3:08 
AnswerRe: Progress Bar Pin
toxcct12-May-06 0:50
toxcct12-May-06 0:50 
GeneralRe: Progress Bar Pin
VinayCool12-May-06 1:06
VinayCool12-May-06 1:06 
GeneralRe: Progress Bar Pin
ThatsAlok12-May-06 3:08
ThatsAlok12-May-06 3:08 
Questioncode reuse without using a library Pin
Waleed Eissa12-May-06 0:40
Waleed Eissa12-May-06 0:40 
AnswerRe: code reuse without using a library Pin
Justin Tay12-May-06 0:42
Justin Tay12-May-06 0:42 
Declare the static member in the .h file and use __declspec(selectany). This tells the linker to just pick one symbol if it's multiply defined and discard the rest.

Edit: Above is if you want to still keep everything in your header file. This results in longer compilation times but is useful if your classes are basically template classes. If you want to go with the .cpp and .h route, you will either have to include the .cpp file in your project, or link to a library with the symbol defined.

-- modified at 6:46 Friday 12th May, 2006
GeneralRe: code reuse without using a library Pin
Waleed Eissa12-May-06 1:16
Waleed Eissa12-May-06 1:16 
AnswerRe: code reuse without using a library Pin
Waleed Eissa12-May-06 0:51
Waleed Eissa12-May-06 0:51 
GeneralRe: code reuse without using a library Pin
Cedric Moonen12-May-06 0:53
Cedric Moonen12-May-06 0:53 
GeneralRe: code reuse without using a library Pin
Waleed Eissa12-May-06 1:20
Waleed Eissa12-May-06 1:20 
GeneralRe: code reuse without using a library Pin
Cedric Moonen12-May-06 1:24
Cedric Moonen12-May-06 1:24 
GeneralRe: code reuse without using a library Pin
Waleed Eissa12-May-06 1:29
Waleed Eissa12-May-06 1:29 
QuestionDisabling files from File Browser Pin
Dennis Furlaneto12-May-06 0:40
Dennis Furlaneto12-May-06 0:40 
AnswerRe: Disabling files from File Browser Pin
ThatsAlok12-May-06 3:06
ThatsAlok12-May-06 3:06 
GeneralRe: Disabling files from File Browser Pin
Dennis Furlaneto12-May-06 4:47
Dennis Furlaneto12-May-06 4:47 
QuestionRe: Disabling files from File Browser Pin
David Crow12-May-06 4:23
David Crow12-May-06 4:23 
AnswerRe: Disabling files from File Browser Pin
Dennis Furlaneto12-May-06 4:49
Dennis Furlaneto12-May-06 4:49 
Questionowner drawn combobox Pin
chybin12-May-06 0:38
chybin12-May-06 0:38 
AnswerRe: owner drawn combobox Pin
Hamid_RT12-May-06 0:52
Hamid_RT12-May-06 0:52 
Questionimage files in database Pin
ali2121212121212112-May-06 0:34
ali2121212121212112-May-06 0:34 
QuestionRe: image files in database Pin
David Crow12-May-06 4:23
David Crow12-May-06 4:23 
AnswerRe: image files in database Pin
ali2121212121212113-May-06 8:58
ali2121212121212113-May-06 8:58 
GeneralRe: image files in database Pin
David Crow15-May-06 3:03
David Crow15-May-06 3:03 

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.