Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-29-2002, 11:58 PM   #1
Member (8 bit)
 
Join Date: Jun 2001
Posts: 169
DirectX 8 SDK and the Clear function not working!

Hey all!

I'm running a Windows 98 (not SE) machine with no graphics accelarator and DirectX 8.0 SDK. I'm using the Visual C++ 6.0 Compiler. I haven't, however, updated it with service packs.

My main thing is this: when i created a DirectDraw Device (named m_pD3DDevice, i wanted to clear the screen and fill it blue. So i use the Clear function, like so:

m_pD3DDevice ->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLORXRGB(0,0,255), 1.0f, 0);

it compiles properly, but i get an error when i try to run it. When i open the Debug for it, it points to the last 0 that is passed to the Clear function. What's wrong? I can't seem to figure it out! Is it just a windows problem or what?
Randomaxess is offline   Reply With Quote
Old 07-02-2002, 06:57 PM   #2
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
Hmm, I don't have the DirectX 8 SDK, what are the params for Clear()?
Paul Victorey is offline   Reply With Quote
Old 07-04-2002, 01:02 PM   #3
Member (9 bit)
 
Join Date: Jan 2001
Location: East Coast, USA
Posts: 320
Send a message via AIM to TMAN
it might sound stupid but are you absolutely sure that you have the latest DX (not the SDK) installed and that your vid card drivers are working correctly?
TMAN is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:19 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2