Can someone send me a source that demonstrates how to get into 640x480x256 gfx mode and plots a pixel?
That's the best way for me to learn things (look at sources, changing things etc.)
DirectX question
#1 Members - Reputation: 122
Posted 07 October 1999 - 08:11 AM
#2 Members - Reputation: 682
Posted 02 October 1999 - 08:17 AM
.Anyway, I'll send you the source to my DirectDraw graphics library if you want it. I personally think its pretty nice myself (I use it in all my projects), but theres plenty of room for improvement.
--TheGoop
#6 Members - Reputation: 122
Posted 02 October 1999 - 09:21 PM
The compiler keeps moaning about: 'unreferenced external symbol _main'.
This only happens when I include 'ddraw.h'.
If I understand it well, I must start my program with WinMain, but that's impossible with main declared (writes to MS-DOS prompt).
When I try to run the source from main I will get a invalid operation error when it tries to create the primary surface. It didn't tried to access 640x480x256 either.
#7 Members - Reputation: 682
Posted 03 October 1999 - 04:23 AM
In a windows program you should never use main, only WinMain(). Although you can create a window from a console app its not good style -- and from what your saying it doesn't sound like it works all the time.
--TheGoop
#8 Members - Reputation: 122
Posted 03 October 1999 - 06:27 AM
of course I want the sources.
And the compiler I use is VC++ 6.0. For some reason you can't write a windows app. I don't know which option I should set that it can use WinMain (and stop bugging me with main).
#10 Members - Reputation: 122
Posted 04 October 1999 - 05:09 AM
And I do agree with an earlier post about getting "Windows Game Programming for Dummies". Don't let the "Dummies" fool ya as Andre Lamothe does quite well in explaining DirectX components DirectDraw,Sound,Input as well as Windows GDI. No Direct3D but he covers that in some of his other books (I think).
Wesley Liu
#11 Members - Reputation: 122
Posted 04 October 1999 - 05:16 AM
"just create a new WIN32 Console Application project, insert your dos code (using main()), #include windows.h & windowsx.h and it should fire right up."
Wesley Liu
------------------
~~~~~~~~~~~~~~~~~~~~~~~~
Currently Network Engineer but soon to be full-time Game Developer!!








