Advertisement

WindowProc

Started by February 11, 2000 06:59 AM
7 comments, last by Pseudo_Code 25 years, 1 month ago
Is there anyway to start directdraw without initializing widows and/or WindowProc or WNDCLASS?
don''t think so
Advertisement
WindowProc is a procedure that all windows in system need. You cant create a window, which don''t have a WindowProc proedure (apart from console application) and you can''t use DirectDraw without a window.

Olek, olo_b@poczta.onet.pl.
Olek, olo_b@poczta.onet.pl.
well, i haven''t tried this, but:
i know that when you create ddraw in windowed mode you don''t need a window handle. Then, can''t you just render to primary (i know, bad manners)?
what about input? how would you run DirectInput, and also DirectSound?

- null_pointer
You still need to have a window in Windowed mode... You just don''t have to pass DDraw the window handle.

Mark Fassett

Laughing Dragon Games

http://www.laughing-dragon.com

Advertisement
EVERY windows app must have a WindowProc. All windows apps are event driven, and must respond to messages.
thanks everybody. I just find initializing it annoying and wanted to know if their was a way around it.
D:
there is a way
call the function CreateDialog and pass it a dialog template from a resource file
you can pass NULL as the DailogProc parameter
then, use that hwnd for your code
i messed around with this for a little while and created a fullscreen ddraw/dinput app, but it malfuncitoned in windowed mode
i hope that that helps
-PoesRaven

This topic is closed to new replies.

Advertisement