Ok, make sure you''re creating a Win32 Application and not a Win32 Console Application. It seems the compiler is looking for your main() function, which doesn''t exist in a Win32 Application.
Second, make sure that you''re linking to ddraw.lib. Go to Project->Settings, then click on the link tab, look down where it says "object/library modules". And in the space below it, after all the others, type in a space and ''ddraw.lib''.
I''m pretty sure those are you''re problems. If you need anymore help, feel free to post it.
"We are the music makers, and we are the dreamers of the dreams." - Willy Wonka
For starters, all I have are linux boxes laying around at the moment so I can''t verify this before posting it.
Be sure to include the dxguid.lib in your project as it has the necessary symbols you''ll need to link with.
I''m pretty sure you also need to make a windows application and not a console app. Your project sounds like it''s being linked against the console libs, when it should be linked against window libs, which is what happens when you try to compile something with devstudio without making a project workspace for it. i.e. compiling a source file directly, it defaults to a console build when it builds the workspace for you.
the wizard eh...That might be part of your problem. When you''re selecting your application type, just create a Win32 application and create an empty workspace for it, then create your .cpp as a new file instead of cut''n''pasting into the wizard''s code. Might not make a difference, but it''s worth a try... --
Ahaha Yahoo its working thank you!!!! Lol, yes was doing something not quite right in adding the source so thanx to all.
so instructions are: 1)using wizard, create win 32 application 2)next screen choose "empty work space" 3)from main menu choose file-new-c++source 3)cut & paste ddex1.cpp from the sdk into empty source file 4)from main menu choose project-settings & add ddraw.lib to the list of library modules 5)build & voila
ps- no need to copy any header files to the project directory.... how the linker knows where to find ddraw.h must come from adding ddraw.lib.