Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Before The System Pin
The_Server2-Sep-01 10:50
The_Server2-Sep-01 10:50 
GeneralRe: Before The System Pin
2-Sep-01 3:10
suss2-Sep-01 3:10 
GeneralRe: Before The System Pin
The_Server2-Sep-01 10:52
The_Server2-Sep-01 10:52 
GeneralRe: Before The System Pin
Mukkie2-Sep-01 10:48
Mukkie2-Sep-01 10:48 
GeneralRe: Before The System Pin
| mProject |2-Oct-01 0:54
| mProject |2-Oct-01 0:54 
GeneralRe: Before The System Pin
Manish Pansiniya28-Oct-04 6:32
Manish Pansiniya28-Oct-04 6:32 
GeneralRe: Before The System Pin
Manish Pansiniya28-Oct-04 6:33
Manish Pansiniya28-Oct-04 6:33 
QuestionASAP: convertion ? Pin
The_Server1-Sep-01 23:40
The_Server1-Sep-01 23:40 
I have this in the .h file:
typedef enum { _P1=0, _P2=15, _P3=6, _PDefault=15} PDef;
 
MyFunc(PDef a){...};

and when I use it .cpp file like this:
MyFunc( (PDef)1785);  // works ok and that's not good


is there a way I can overwrite the '(PDef)' convertion?
e.g.
(PDef)1785- will return _PDefault ?
or somthing like that

thanks




BTW: for some of you that wished for CodeProject irc server
I create a channle on DalNet called "#CodeProject"
AnswerRe: ASAP: convertion ? Pin
Michael Dunn2-Sep-01 6:38
sitebuilderMichael Dunn2-Sep-01 6:38 
General: _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Dmitriy Reznitskiy1-Sep-01 23:15
Dmitriy Reznitskiy1-Sep-01 23:15 
GeneralRe: : _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Tomasz Sowinski3-Sep-01 0:50
Tomasz Sowinski3-Sep-01 0:50 
GeneralRe: : _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Dmitriy Reznitskiy3-Sep-01 1:13
Dmitriy Reznitskiy3-Sep-01 1:13 
GeneralRe: : _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Tomasz Sowinski3-Sep-01 1:20
Tomasz Sowinski3-Sep-01 1:20 
GeneralRe: : _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Dmitriy Reznitskiy3-Sep-01 1:23
Dmitriy Reznitskiy3-Sep-01 1:23 
GeneralRe: : _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Tomasz Sowinski3-Sep-01 1:33
Tomasz Sowinski3-Sep-01 1:33 
GeneralRe: : _CRTDBG_MAP_ALLOC, stdlib.h, crtdbg.h и malloc.h Pin
Dmitriy Reznitskiy3-Sep-01 1:55
Dmitriy Reznitskiy3-Sep-01 1:55 
GeneralHelp File. Pin
The_Server1-Sep-01 22:46
The_Server1-Sep-01 22:46 
GeneralRe: Help File. Pin
Christian Graus1-Sep-01 23:38
protectorChristian Graus1-Sep-01 23:38 
GeneralRe: Help File. Pin
The_Server2-Sep-01 0:15
The_Server2-Sep-01 0:15 
GeneralRe: Help File. Pin
Christian Graus2-Sep-01 0:22
protectorChristian Graus2-Sep-01 0:22 
GeneralRe: Help File. Pin
The_Server2-Sep-01 1:32
The_Server2-Sep-01 1:32 
Generalserial port, parallel port, and usb Pin
Maer7271-Sep-01 16:50
Maer7271-Sep-01 16:50 
GeneralRe: serial port, parallel port, and usb Pin
2-Sep-01 2:16
suss2-Sep-01 2:16 
GeneralMaking an application that runs in the background of the system Pin
fried1-Sep-01 8:55
fried1-Sep-01 8:55 
GeneralRe: Making an application that runs in the background of the system Pin
Tim Smith1-Sep-01 9:13
Tim Smith1-Sep-01 9:13 

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.