Click here to Skip to main content
15,885,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: User Defined Messages - Value Pin
Michael Dunn24-May-06 12:25
sitebuilderMichael Dunn24-May-06 12:25 
GeneralRe: User Defined Messages - Value Pin
Cliff Hatch25-May-06 0:52
Cliff Hatch25-May-06 0:52 
QuestionPostMessage - What should the handler return? Pin
Cliff Hatch24-May-06 8:39
Cliff Hatch24-May-06 8:39 
AnswerRe: PostMessage - What should the handler return? Pin
RChin24-May-06 9:48
RChin24-May-06 9:48 
GeneralRe: PostMessage - What should the handler return? Pin
Cliff Hatch24-May-06 11:18
Cliff Hatch24-May-06 11:18 
QuestionCorrect use of extern Pin
masnu24-May-06 8:38
masnu24-May-06 8:38 
AnswerRe: Correct use of extern Pin
David Crow24-May-06 10:20
David Crow24-May-06 10:20 
AnswerRe: Correct use of extern Pin
Chris Losinger24-May-06 10:58
professionalChris Losinger24-May-06 10:58 
you use extern when you want to tell the compiler the type of a variable or function which is defined in another file.

if you have a variable called blah, of type int, at global scope (not static, or local to a function) in foo.c and you want to use it in bar.c, you would put "extern int blah;" somewhere in bar.c, or in a file that bar.c includes. that way, when the compiler is working on bar.c, it knows the type of the variable 'blah'.

the linker will come around later and make sure all references to 'blah' are looking at the same thing.


Cleek | Image Toolkits | Thumbnail maker

Questionjpeg/png/tiff libs in VS 2005 linker errors. Pin
CodeGoose24-May-06 7:45
CodeGoose24-May-06 7:45 
AnswerRe: jpeg/png/tiff libs in VS 2005 linker errors. Pin
David Crow24-May-06 8:23
David Crow24-May-06 8:23 
AnswerRe: jpeg/png/tiff libs in VS 2005 linker errors. Pin
Chris Losinger24-May-06 8:23
professionalChris Losinger24-May-06 8:23 
GeneralRe: jpeg/png/tiff libs in VS 2005 linker errors. Pin
CodeGoose24-May-06 8:48
CodeGoose24-May-06 8:48 
QuestionIs it too late to write a book on how to do Owner-Draw components using Win32 API/MFC/WTL? Pin
Han Bo Sun24-May-06 7:36
professionalHan Bo Sun24-May-06 7:36 
Question[C++] Remote WMI ==> "Access denied" Pin
mocrotronics24-May-06 5:33
mocrotronics24-May-06 5:33 
AnswerRe: [C++] Remote WMI ==> "Access denied" Pin
Sheng Jiang 蒋晟24-May-06 11:16
Sheng Jiang 蒋晟24-May-06 11:16 
QuestionINT_PTR/INT usage confusion Pin
bob1697224-May-06 4:51
bob1697224-May-06 4:51 
AnswerRe: INT_PTR/INT usage confusion Pin
toxcct24-May-06 5:18
toxcct24-May-06 5:18 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 5:27
bob1697224-May-06 5:27 
GeneralRe: INT_PTR/INT usage confusion Pin
toxcct24-May-06 5:50
toxcct24-May-06 5:50 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 6:16
bob1697224-May-06 6:16 
QuestionRe: INT_PTR/INT usage confusion Pin
Chris Meech24-May-06 5:46
Chris Meech24-May-06 5:46 
AnswerRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 6:15
bob1697224-May-06 6:15 
GeneralRe: INT_PTR/INT usage confusion Pin
Chris Meech24-May-06 6:49
Chris Meech24-May-06 6:49 
GeneralRe: INT_PTR/INT usage confusion Pin
bob1697224-May-06 7:38
bob1697224-May-06 7:38 
GeneralRe: INT_PTR/INT usage confusion Pin
Zac Howland24-May-06 8:30
Zac Howland24-May-06 8:30 

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.