Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectDraw/Visual C++ oddity...

Started by Phantasm Jul 12, 2000 at 1:46 PM 3 replies 600+ views
Original Post
Phantasm
Phantasm
Okay, I''m not exactly complaining or anything (although I''d like to figure out how to make this stop happening), but I''ve noticed something odd. I''m just starting in game programming [hides behind a -3 Newbie Shield] and I''m trying to write a game. FYI, I know C/C++ already, and I''ve written Pong in Windows GDI. So, I''m not one of those "Come help me write a 3D game! I just got Teach Yourself C++ in 24 Hours" types. Now that I''ve justified my existance, here''s the oddity. I''m writing an interface module for DirectDraw (for a small number of reasons) in a seperate library (which also includes an error-handling object). All of the interface pointers, surface pointers, etc. are global (to the module). I''m using DirectX 6.0 because I''m too lazy to read the DirectX 7.0 SDK. Anyhow, in my initialization function, I have a temporary interface pointer to IDirectDraw (you know the routine, get that interface, then query for IDirectDraw4). Oddly enough, Visual C++''s Statement Completion feature only seems to work when I''m typing a call to DirectDrawCreate(), lpddTemp->QueryInterface() for IDirectDraw4, and lpddTemp->Release(). Whenever I''m using any other DirectDraw object/structure, Statement Completion simply does nothing. I''m just wondering...does this happen to anyone else or is it just me? And...how can I change it? P h a n t a s m -- "Through dreams I influence mankind."
Phantasm
Jon Juan
Jon Juan
Have you added the appropriate Direct3d header files to the project''s source code folders? Those header files are pretty spread out, there are a couple different ones you have to add to expand structures, interfaces, functions etc...
+AA_970+
+AA_970+
Yea that happens to me too sometimes, what i do is open up the direct draw header file, put a space, delete the space, and complie. That way it thinks the header file has been changed. For some reason after doing this it works.

+AA_970+
Phantasm
Phantasm
Jon: I''m...not using Direct3D. I''m a newbie. Just dumb enough to actually try and make an "original" game my first time ''round. I''m just using DirectDraw...and I''m pretty sure there''s only one necessesary header.

+AA_970+: Okay...I''ll try that, thanks. Hopefully, it''ll work. Darn MS...

P h a n t a s m -- "Through dreams I influence mankind."
Phantasm
Phantasm
Phantasm
Okay...doing that space thing actually worked. Thanks! :D

P h a n t a s m -- "Through dreams I influence mankind."
Phantasm

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.