Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem in linking tow relative classes Pin
rabih_kai13-Oct-04 23:42
rabih_kai13-Oct-04 23:42 
GeneralRe: problem in linking tow relative classes Pin
Mad__14-Oct-04 0:19
Mad__14-Oct-04 0:19 
QuestionCD-Key generator for my shareware game? Pin
Link260013-Oct-04 23:04
Link260013-Oct-04 23:04 
AnswerRe: CD-Key generator for my shareware game? Pin
Antony M Kancidrowski14-Oct-04 0:35
Antony M Kancidrowski14-Oct-04 0:35 
GeneralDirectSound capturing 8/16 bit wave PCM Pin
erkanina13-Oct-04 22:51
erkanina13-Oct-04 22:51 
GeneralODBC - updating bulk rows of data Pin
Yariv13-Oct-04 22:26
Yariv13-Oct-04 22:26 
GeneralRe: ODBC - updating bulk rows of data Pin
BlackDice14-Oct-04 6:32
BlackDice14-Oct-04 6:32 
Generalhelp me to find errors! Thanks Pin
Guoguor13-Oct-04 21:53
Guoguor13-Oct-04 21:53 
Hello everyone,
An error occur when I debug the follow codes,please help me tofind the errors,Thanks!
DDSURFACEDESC2 ddsd;
LPDIRECTDRAWSURFACE4 g_pDDSBack = NULL;
//DirectDraw back surface
HRESULT hRet;
memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);
ddsd.dwFlags= DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH |
DDSD_PIXELFORMAT | DDSD_BACKBUFFERCOUNT;
ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY |
DDSCAPS_VIDEOPORT |
DDSCAPS_SYSTEMMEMORY|
//DDSCAPS_VIDEOMEMORY |
DDSCAPS_FLIP |
DDSCAPS_BACKBUFFER |
DDSCAPS_COMPLEDead | X|
FALSE;
ddsd.dwBackBufferCount = 1;
ddsd.dwWidth =g_SurfWidth;
ddsd.dwHeight =g_SurfHeight*g_Factor;
ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;
ddsd.ddpfPixelFormat.dwFourCC=mmioFOURCC
('Y','U','Y','V');
Line1:
hRet = g_pDD->CreateSurface(&ddsd, &g_pDDSBack, NULL);
Note :
g_pDD is a created LPDIRECTDRAW4 vairable
Add I have checked the value of g_pDD.
It's not zero!
g_SurfWidth,g_SurfHeight,g_Factor are all initialzed!
but When I excute the program g_pDDSback is zero!
why?
Is there some errors at the setting of ddsd?





free like a bird
GeneralRe: help me to find errors! Thanks Pin
David Crow14-Oct-04 2:46
David Crow14-Oct-04 2:46 
GeneralRe: help me to find errors! Thanks Pin
Guoguor14-Oct-04 16:14
Guoguor14-Oct-04 16:14 
GeneralRe: help me to find errors! Thanks Pin
David Crow15-Oct-04 2:22
David Crow15-Oct-04 2:22 
QuestionHow to sign an ActiveX? Pin
anderslundsgard13-Oct-04 21:38
anderslundsgard13-Oct-04 21:38 
AnswerRe: How to sign an ActiveX? Pin
geo_m14-Oct-04 2:11
geo_m14-Oct-04 2:11 
QuestionHow To Pass CPoint* to VARIANT FAR Pin
Rajesh_Parameswaran13-Oct-04 21:09
Rajesh_Parameswaran13-Oct-04 21:09 
GeneralProblem occurred ...please help Pin
pubududilena13-Oct-04 20:40
pubududilena13-Oct-04 20:40 
GeneralRe: Problem occurred ...please help Pin
geo_m13-Oct-04 21:36
geo_m13-Oct-04 21:36 
GeneralRe: Problem occurred ...please help Pin
Andrzej Markowski13-Oct-04 22:26
Andrzej Markowski13-Oct-04 22:26 
QuestionHow to find the Domain name. Pin
Jijo.Raj13-Oct-04 20:04
Jijo.Raj13-Oct-04 20:04 
AnswerRe: How to find the Domain name. Pin
geo_m14-Oct-04 0:18
geo_m14-Oct-04 0:18 
GeneralRe: How to find the Domain name. Pin
Jijo.Raj14-Oct-04 2:28
Jijo.Raj14-Oct-04 2:28 
AnswerRe: How to find the Domain name. Pin
David Crow14-Oct-04 2:50
David Crow14-Oct-04 2:50 
GeneralRe: How to find the Domain name. Pin
Jijo.Raj18-Oct-04 20:35
Jijo.Raj18-Oct-04 20:35 
GeneralChanging the look and feel of button Pin
ledallam13-Oct-04 19:57
ledallam13-Oct-04 19:57 
GeneralRe: Changing the look and feel of button Pin
Sujan Christo13-Oct-04 20:41
Sujan Christo13-Oct-04 20:41 
GeneralRe: Changing the look and feel of button Pin
pubududilena13-Oct-04 20:45
pubududilena13-Oct-04 20:45 

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.