In my class, a data member is a pointer to a character array......which is assigned to memory from the heap when the constructor is called.
One of the arguments to the constructor is a string, and...
Type: Posts; User: SkyRaign
In my class, a data member is a pointer to a character array......which is assigned to memory from the heap when the constructor is called.
One of the arguments to the constructor is a string, and...
That is precisely what I am saying.
If I include just the header files and keep the function definitions in the program.cpp, things will work. The errors that I get involve arguments to the...
I am trying to do a multiple file program. I have class and function declarations in header files, and their corresponding definitions in .cpp source files. If I use the #include directive...
Ah, thanks guys. Works now!
infile.open(input)
if(!infile)
{
cout<<"Invalid file name. Try again."<<endl;
}
Here, I am trying to read the file designated by "input".
Infile is an instance of the...
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string.h>
#include <ctime>
using namespace std;
int main()
{
int input;
Well Bubba, I'll take your word for it. Only trouble is, now I need to find some resources that teach the Direct3D for 2D interfaces, since this book I have is completely horrible.
Of course...
DirectDraw is still there and still functional. Face it. -I- for one want to learn the roots.
LPDIRECTDRAW7 lpdd;
DirectDrawCreateEx(NULL,(void**)&lpdd,IID_IDirectDraw7,NULL);
lpdd->SetCooperativeLevel(hHandle,DDSCL_NORMAL);
if((lpdd->SetDisplayMode(1024,768,16,0,0))!=DD_OK)
{...
Both, actually.
The window creates full screen popup (no borders).
I want the option of playing it in a window versus playing a full screen game like pretty much any computer game out there. I...
What I have in mind is to set up the window like a lot of computer games do: you have your full screen mode (no window border, i.e. popup) and your windowed mode, which of course looks like a...
When I call the CreateWindow function, initially I supply WS_POPUP and WS_VISIBLE as parameters.
CreateWindow(WINDOW_CLASS_NAME,"Window Class",WS_POPUP | WS_VISIBLE, 0,0,...
Initially, my window appears as a full-screen popup. I want to add a case in the message handler that detects ALT + ENTER to change the state to a normal window if it is in popup mode, and to revert...
My question is, what is the difference between these two keywords (if any) as they relate to classes?
I'm pretty new to game programming and could use some help getting started. I understand the principle of what to do, but the matter of actually doing it is something I will need some help on. The...
I looked through the tutorials on this site and I'm still unclear how exactly they work...
In the example it shows as a prototype:
bool (*)(int, int)
Does the name of the pointer...
Well I'll try working with that and seeing how things go. Man, I never realized what a pain it was to set up a compiler! Now I have everything running like it is supposed to, thanks to you guys. ...
I went and got Visuall C++.NET--and now, it compiles fine, but it won't link. It gives me 'cannot open dplay.lib'. Now what am I supposed to do? Yes, all of the .lib files from the DirectX SDK are...
Nope. Sure don't. I am considering Visual C++.NET though
Well, Visual Studio 2005 Express Edition will not install on my computer for some reason (had the same problem on my old computer).
I was looking at Visual C++.NET 2003 though......it's around...
Well that's just it. I DID link the libraries. Dev's errors are kinda unintelligible; that's one thing I don't like about it. I wasn't sure if that libwinmm.a file was the same thing or not. I...
I am using DirectX 9.0 SDK, and am trying to set up Dev C++ 4.9.9.2 to use them. At first, the following three files gave me problems:
d3dx9.h
dmusici.h
dshow.h
I would include them and the...
Ah, thanks, suddenly that makes quite a bit more sense. Alright, then here's my next volley...
I'm using Dev C++ v 4.9.9.2 and apparently I need a winmm.lib file (or an equivalent, but for now...
I'm used to C++ code and for right now I am working out of the "Windows Game Programming for Dummies" book. This book focuses mostly on C, though at times it integrates some C++. In the window...
I've been looking for books to this effect; something for an intermediate level programmer that will show the way to the world of game programming. There are quite a few books out there; which ones...