Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontypedef enum & typecasting [modified] Pin
testcrap2-Jul-08 2:49
testcrap2-Jul-08 2:49 
AnswerRe: typedef enum & typecasting Pin
_AnsHUMAN_ 2-Jul-08 2:54
_AnsHUMAN_ 2-Jul-08 2:54 
GeneralRe: typedef enum & typecasting Pin
David Crow2-Jul-08 4:53
David Crow2-Jul-08 4:53 
AnswerRe: typedef enum & typecasting Pin
KarstenK2-Jul-08 3:09
mveKarstenK2-Jul-08 3:09 
GeneralRe: typedef enum & typecasting Pin
testcrap2-Jul-08 3:17
testcrap2-Jul-08 3:17 
GeneralRe: typedef enum & typecasting Pin
KarstenK2-Jul-08 3:39
mveKarstenK2-Jul-08 3:39 
GeneralRe: typedef enum & typecasting Pin
testcrap2-Jul-08 3:41
testcrap2-Jul-08 3:41 
QuestionRe: typedef enum & typecasting Pin
David Crow2-Jul-08 4:59
David Crow2-Jul-08 4:59 
testcrap wrote:
can someone plaes help me?


Have you considered something like:

typedef struct tagRENDERARGS
{
    VSYNC Status;
    HWND hWnd;
    HDC hDC;
    BYTE nBPP;
    BYTE nRefresh;
    bool bFullscreen;
    bool bZoomed;
 
    tagRENDERARGS()
    {
        Status = VSync_Default;
        hWnd = 0;
        hDC = 0;
        nBPP = 0;
        nRefresh = 0;
        bFullscreen = 0;
        bZoomed = 0;
    }
 
} RENDERARGS, *PRENDERARGS;
...
RENDERARGS Args;


"Love people and use things, not love things and use people." - Unknown

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: typedef enum & typecasting Pin
testcrap2-Jul-08 5:55
testcrap2-Jul-08 5:55 
Questionoccupied port Pin
George_George2-Jul-08 2:41
George_George2-Jul-08 2:41 
AnswerRe: occupied port Pin
_AnsHUMAN_ 2-Jul-08 2:52
_AnsHUMAN_ 2-Jul-08 2:52 
GeneralRe: occupied port Pin
George_George2-Jul-08 3:09
George_George2-Jul-08 3:09 
GeneralRe: occupied port Pin
Hamid_RT2-Jul-08 20:10
Hamid_RT2-Jul-08 20:10 
GeneralRe: occupied port Pin
George_George3-Jul-08 21:51
George_George3-Jul-08 21:51 
GeneralRe: occupied port Pin
Hamid_RT4-Jul-08 0:21
Hamid_RT4-Jul-08 0:21 
GeneralRe: occupied port Pin
George_George4-Jul-08 1:00
George_George4-Jul-08 1:00 
GeneralRe: occupied port Pin
Hamid_RT4-Jul-08 1:41
Hamid_RT4-Jul-08 1:41 
GeneralRe: occupied port Pin
George_George4-Jul-08 1:51
George_George4-Jul-08 1:51 
AnswerRe: occupied port Pin
Nibu babu thomas2-Jul-08 3:10
Nibu babu thomas2-Jul-08 3:10 
GeneralRe: occupied port Pin
George_George2-Jul-08 3:15
George_George2-Jul-08 3:15 
GeneralRe: occupied port Pin
Nibu babu thomas2-Jul-08 3:19
Nibu babu thomas2-Jul-08 3:19 
GeneralRe: occupied port Pin
George_George3-Jul-08 21:48
George_George3-Jul-08 21:48 
GeneralRe: occupied port Pin
Nibu babu thomas3-Jul-08 21:53
Nibu babu thomas3-Jul-08 21:53 
GeneralRe: occupied port Pin
George_George3-Jul-08 22:02
George_George3-Jul-08 22:02 
AnswerRe: occupied port Pin
Roger Stoltz2-Jul-08 4:17
Roger Stoltz2-Jul-08 4:17 

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.