#### Archived

This topic is now archived and is closed to further replies.

# Newbie DirectDraw Problem

This topic is 5296 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I was wondering if someone could help me out real quick on two points. I am a C++ programmer that is new to WIndows Programming and DirectX programming. First thing is that I am using the FAILED macro when I am createing my surface and buffers. The problem is that I don''t know of a good way to find out if it is executing or not. I know how to do this in console programming, but not withing windows. I would really like to print to a log. If someone could explain how to do that I would really appreciate it. The other probem I am having is that I am using a for loop to change a block of pixels from black to white. The problem is that I see the pixels change just for less than a second and then they are black again. The loop is not in any other kind of loop so it should just change them to white and then be done with it. Is this the way it is supposed to work or does it sound like I am doing something wrong. Thanks for the help in advance. If you need anymore info just let me know.

##### Share on other sites
It''s easier to read text when it''s seperated into paragraphs

You need to include the dxerr9.lib (replace 9 with your
version) and dxerr9.h files into your project. Then you can
do such things as this:
HRESULT hVal = InitSomething();if(FAILED(hVal))  ShowErrorString(DXGetErrorString9(hVal));

Hope that helps at least a little.

1. 1
Rutin
44
2. 2
3. 3
4. 4
5. 5

• 10
• 28
• 20
• 9
• 20
• ### Forum Statistics

• Total Topics
633409
• Total Posts
3011705
• ### Who's Online (See full list)

There are no registered users currently online

×