Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: typedef Handle Pin
Jay0329-Jun-06 4:40
Jay0329-Jun-06 4:40 
GeneralRe: typedef Handle Pin
Jun Du29-Jun-06 5:14
Jun Du29-Jun-06 5:14 
AnswerRe: typedef Handle [modified] Pin
Viorel.29-Jun-06 4:34
Viorel.29-Jun-06 4:34 
GeneralRe: typedef Handle Pin
Jay0329-Jun-06 4:40
Jay0329-Jun-06 4:40 
GeneralRe: typedef Handle Pin
Viorel.29-Jun-06 4:48
Viorel.29-Jun-06 4:48 
QuestionRe: typedef Handle Pin
ovidiucucu29-Jun-06 4:59
ovidiucucu29-Jun-06 4:59 
AnswerRe: typedef Handle Pin
Viorel.29-Jun-06 5:15
Viorel.29-Jun-06 5:15 
AnswerRe: typedef Handle Pin
Zac Howland29-Jun-06 4:45
Zac Howland29-Jun-06 4:45 
It is a very poor way to declare a new type. The reason it is poor is because of the naming. The goal it is trying to accomplish is to declare a new type that is a pointer-to-a-pointer-to-a-pointer-to-a-pointer-to-a-Handle. A better way to write it would be either of the following:

Option 1:
typedef RedirectedHandle ****Handle;

Option 2:
// assuming Handle is in global namespace
namespace MyStuff
{
    typedef Handle **** ::Handle;
}


An even better solution would be to not use that many levels of indirection (who needs 4 levels of indirection for a Handle?) and to use smart pointers.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: typedef Handle Pin
ovidiucucu29-Jun-06 5:04
ovidiucucu29-Jun-06 5:04 
Questionabout button OwnerDraw [modified] Pin
HOW WHAT29-Jun-06 3:54
HOW WHAT29-Jun-06 3:54 
AnswerRe: about button OwnerDraw Pin
Sarath C29-Jun-06 3:58
Sarath C29-Jun-06 3:58 
JokeRe: about button OwnerDraw Pin
ovidiucucu29-Jun-06 4:13
ovidiucucu29-Jun-06 4:13 
GeneralRe: about button OwnerDraw Pin
HOW WHAT29-Jun-06 4:56
HOW WHAT29-Jun-06 4:56 
QuestionProblems including previously done class Pin
RedSpyder29-Jun-06 3:03
RedSpyder29-Jun-06 3:03 
AnswerRe: Problems including previously done class Pin
Jun Du29-Jun-06 3:26
Jun Du29-Jun-06 3:26 
QuestionHow to write content of file in to a structure Pin
birajendu29-Jun-06 2:55
birajendu29-Jun-06 2:55 
AnswerRe: How to write content of file in to a structure Pin
Cedric Moonen29-Jun-06 2:58
Cedric Moonen29-Jun-06 2:58 
GeneralRe: How to write content of file in to a structure Pin
birajendu29-Jun-06 3:46
birajendu29-Jun-06 3:46 
GeneralRe: How to write content of file in to a structure Pin
Cedric Moonen29-Jun-06 3:48
Cedric Moonen29-Jun-06 3:48 
GeneralRe: How to write content of file in to a structure Pin
birajendu29-Jun-06 3:55
birajendu29-Jun-06 3:55 
GeneralRe: How to write content of file in to a structure Pin
Cedric Moonen29-Jun-06 3:58
Cedric Moonen29-Jun-06 3:58 
GeneralRe: Pin
birajendu29-Jun-06 3:56
birajendu29-Jun-06 3:56 
AnswerRe: How to write content of file in to a structure Pin
Jun Du29-Jun-06 3:49
Jun Du29-Jun-06 3:49 
QuestionMemory leak [modified] Pin
pierre_ribery29-Jun-06 2:48
pierre_ribery29-Jun-06 2:48 
AnswerRe: Memory leak Pin
Zac Howland29-Jun-06 3:56
Zac Howland29-Jun-06 3:56 

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.