• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

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

Guest Anonymous Poster

Setting up VC++ 6 for DirectX

11 posts in this topic

It sounds like you are missing some {} somewhere. Recheck your typing. Make sure to #include "ddraw.h" also. The unexpected end of file error usually means you missed a } to close a paragraph.

------------------
Still Learning...

0

Share this post


Link to post
Share on other sites
Hmm, thanks, but I don't think that's the problem. here's an excerpt from my code.

#include
#include
#include

LPDIRECTDRAW4 ddraw;
DDSURFACEDESC2 ddsd;

0

Share this post


Link to post
Share on other sites
He's right, sounds like you're missing a }, or a ; after the } at the end of a class. It depends on what you're three #includes are. If one of the includes is a file that you created or a non-system header file, I'd look for it in there. Good luck :-)
0

Share this post


Link to post
Share on other sites
AHHH, i forgot about html on the board. the include right before the LPDIRECTDRAW4 declaration is to for ddraw.h
0

Share this post


Link to post
Share on other sites
I am kind of a newbee to but I will try anyways.If it is missing a ';' double click next to error message should take you to line of code.Check the line before it that is where it usually is for me.If not hit help,index and type in error codes that should give you an idea or two.
0

Share this post


Link to post
Share on other sites
Hehe well have fun finding it I know sometimes if i leave out a damm ; or {} somewhere. I'll sometimes get around 300 error msgs(from iostream.h,and so on)the one that makes me mad is when I leave out a ; ,and get msg's like local functions are supported cant build precompiled header......
Gerr!!!!!!!!!!!!!!!!!!

Dont know anyway to fix that but to go look through my code for the error. I wonder if its any better in 5.0 or 6.0(im using 4.2).

[This message has been edited by Zenroth (edited December 30, 1999).]

0

Share this post


Link to post
Share on other sites
I am getting the exact same error messages

I was told to set the build paths to look at the sdk directories but hoe the f%&@ do you do that, I spent the entire night last night to compile a DirectDraw APP

I have
#include
#include

I get the same errors man, and it is peeing me right off - hehehe

Any solutions to this

------------------
Erick

0

Share this post


Link to post
Share on other sites
Damn excuse the missing "ddraw.h" and "ddraw.lib"

I think that maybe just maybe you have not set both the include paths and lib paths to your DX sdk

- shot in the dark, give it a bash

I am a VB programmer trying to sus out C++

MISSION -- but I am getting there, but these little niggles are a thorn in my side.

Aaaaarrrgggg
But anyway,
Hope this works

------------------
Erick

0

Share this post


Link to post
Share on other sites
I think I may know whats going on, because it has taken me ages to figure out how to compile the sample projects that came with the DirectX 6.1 SDK.

It seems you have correctly added the .lib and .h include directories, but you have not moved them to the top of the list!

I just tried compiling my prog with these directories in the default, bottom position and I got 172 errors including those you mentioned!

Regards

Matt

0

Share this post


Link to post
Share on other sites
I think I may know whats going on, because it has taken me ages to figure out how to compile the sample projects that came with the DirectX 6.1 SDK.

It seems you have correctly added the .lib and .h include directories, but you have not moved them to the top of the list!

I just tried compiling my prog with these directories in the default, bottom position and I got 172 errors including those you mentioned!

Regards

Matt

0

Share this post


Link to post
Share on other sites
Hey man, that solved the problems! Thanks alot! BTW, Erick, if you're using MSVC++ then just scroll up to my original message to see how to set the paths.
0

Share this post


Link to post
Share on other sites
I'm sorry to ask this, I know it's probably been asked a thousand times, and I looked but found no answers. I know there are hundreds of documents that give this information, and I looked but found none that worked for me.

I used to use Borland C++, I liked it, things worked, etc. Well I got Visual C++ 6.0 recently, and I really really really like it. But I can't get directx programs to compile correctly. Here's what I do. I create a new workspace and add all the code. Then I go into Tools->Options, click the directories tab, and set both the Include files and Library files for directx. Next I go into Project->Settings and click on the link tab. I then enter in the names of the proper libraries to the Objects/library modules text box. When I try to compile, however, I get errors like:

error C2146: syntax error : missing ';' before identifier 'ddraw'

error C2501: 'LPDIRECTDRAW4' : missing storage-class or type specifiers

fatal error C1004: unexpected end of file found

Please help me solve this problem.

0

Share this post


Link to post
Share on other sites