Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing DC Pin
John R. Shaw1-Apr-04 8:52
John R. Shaw1-Apr-04 8:52 
GeneralRe: Drawing DC Pin
Ravi Bhavnani1-Apr-04 9:50
professionalRavi Bhavnani1-Apr-04 9:50 
GeneralRe: Drawing DC--Thanks Pin
ns5-Apr-04 3:43
ns5-Apr-04 3:43 
QuestionWhat is UNUSED used for? Pin
Jesse Evans1-Apr-04 7:32
Jesse Evans1-Apr-04 7:32 
AnswerRe: What is UNUSED used for? Pin
David Crow1-Apr-04 7:55
David Crow1-Apr-04 7:55 
GeneralRe: What is UNUSED used for? Pin
Jesse Evans1-Apr-04 8:25
Jesse Evans1-Apr-04 8:25 
GeneralRe: What is UNUSED used for? Pin
grigsoft1-Apr-04 8:36
grigsoft1-Apr-04 8:36 
GeneralRe: What is UNUSED used for? Pin
David Crow1-Apr-04 8:39
David Crow1-Apr-04 8:39 
Jesse Evans wrote:
I think you meant disable:4065, but that was enough to overcome my issue.

You're right. Blush | :O How I got C4507 is anyone's guess.

Jesse Evans wrote:
BTW, why is this sprinkled all over Microsoft's code? Shouldn't one simply remove the reference to the unused variable?

I'm not sure. Have a look at the USES_CONVERSION preprocessor directive. It will declare a variable and then use that variable all by itself in a statement just to keep the compiler from complaining about an unreferenced variable.

There's also the case of unreferenced function parameters. With C++, you can declare a function and omit the names of any unused parameters. With C that was not possible, so inside of the function, you could use the UNUSED() macro to get ride of the C4101 warning. Make sense?


"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)


GeneralRe: What is UNUSED used for? Pin
Jesse Evans1-Apr-04 8:51
Jesse Evans1-Apr-04 8:51 
GeneralMonitoring a network directory Pin
LKogut1-Apr-04 7:32
LKogut1-Apr-04 7:32 
GeneralRe: Monitoring a network directory Pin
David Crow1-Apr-04 8:50
David Crow1-Apr-04 8:50 
GeneralRe: Monitoring a network directory Pin
LKogut2-Apr-04 1:35
LKogut2-Apr-04 1:35 
GeneralResizing PropertyPages Pin
act_x1-Apr-04 7:25
act_x1-Apr-04 7:25 
GeneralCArray on the heap Pin
sschilachi1-Apr-04 6:17
sschilachi1-Apr-04 6:17 
GeneralRe: CArray on the heap Pin
David Crow1-Apr-04 6:49
David Crow1-Apr-04 6:49 
GeneralRe: CArray on the heap Pin
Ravi Bhavnani1-Apr-04 7:08
professionalRavi Bhavnani1-Apr-04 7:08 
GeneralRe: CArray on the heap Pin
Navin1-Apr-04 7:38
Navin1-Apr-04 7:38 
GeneralProblem with strings conversion Pin
doctorpi1-Apr-04 6:05
doctorpi1-Apr-04 6:05 
GeneralRe: Problem with strings conversion Pin
Ravi Bhavnani1-Apr-04 6:33
professionalRavi Bhavnani1-Apr-04 6:33 
GeneralRe: Problem with strings conversion Pin
doctorpi1-Apr-04 6:42
doctorpi1-Apr-04 6:42 
GeneralRe: Problem with strings conversion Pin
Ravi Bhavnani1-Apr-04 6:49
professionalRavi Bhavnani1-Apr-04 6:49 
GeneralRe: Problem with strings conversion Pin
doctorpi1-Apr-04 6:58
doctorpi1-Apr-04 6:58 
GeneralRe: Problem with strings conversion Pin
Ravi Bhavnani1-Apr-04 7:06
professionalRavi Bhavnani1-Apr-04 7:06 
GeneralRe: Problem with strings conversion Pin
doctorpi1-Apr-04 7:14
doctorpi1-Apr-04 7:14 
GeneralRe: Problem with strings conversion Pin
Ravi Bhavnani1-Apr-04 7:20
professionalRavi Bhavnani1-Apr-04 7:20 

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.