Search:

Type: Posts; User: SkyRaign

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    4,597

    copying strings to heap character arrays

    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...
  2. Replies
    4
    Views
    2,170

    That is precisely what I am saying. If I...

    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...
  3. Replies
    4
    Views
    2,170

    Visual Studio 2005 (C++)

    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...
  4. Replies
    3
    Views
    964

    Ah, thanks guys. Works now!

    Ah, thanks guys. Works now!
  5. Replies
    3
    Views
    964

    Problem reading files

    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...
  6. Replies
    2
    Views
    857

    Problem with Visual C++.NET

    #include <cstdio>
    #include <cstdlib>
    #include <iostream>
    #include <string.h>
    #include <ctime>
    using namespace std;

    int main()
    {
    int input;
  7. Well Bubba, I'll take your word for it. Only...

    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...
  8. DirectDraw is still there and still functional. ...

    DirectDraw is still there and still functional. Face it. -I- for one want to learn the roots.
  9. Problem with CreateSurface function (DirectDraw)

    LPDIRECTDRAW7 lpdd;
    DirectDrawCreateEx(NULL,(void**)&lpdd,IID_IDirectDraw7,NULL);
    lpdd->SetCooperativeLevel(hHandle,DDSCL_NORMAL);
    if((lpdd->SetDisplayMode(1024,768,16,0,0))!=DD_OK)
    {...
  10. Replies
    10
    Views
    1,780

    Both, actually. The window creates full screen...

    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...
  11. Replies
    10
    Views
    1,780

    What I have in mind is to set up the window like...

    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...
  12. Replies
    10
    Views
    1,780

    When I call the CreateWindow function, initially...

    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,...
  13. Replies
    10
    Views
    1,780

    Checking and changing window states

    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...
  14. Replies
    3
    Views
    1,264

    Private vs. Protected

    My question is, what is the difference between these two keywords (if any) as they relate to classes?
  15. Replies
    75
    Views
    19,220

    I'm pretty new to game programming and could use...

    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...
  16. Replies
    5
    Views
    978

    About function pointers...

    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...
  17. Replies
    12
    Views
    3,290

    Well I'll try working with that and seeing how...

    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. ...
  18. Replies
    12
    Views
    3,290

    What the heck now?!?!?!

    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...
  19. Replies
    12
    Views
    3,290

    Nope. Sure don't. I am considering Visual...

    Nope. Sure don't. I am considering Visual C++.NET though
  20. Replies
    12
    Views
    3,290

    Well, Visual Studio 2005 Express Edition will not...

    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...
  21. Replies
    12
    Views
    3,290

    Well that's just it. I DID link the libraries. ...

    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...
  22. Replies
    12
    Views
    3,290

    Problems with DirectX 9.0 SDK includes

    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...
  23. Ah, thanks, suddenly that makes quite a bit more...

    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...
  24. New to Windows programming, but a few early questions...

    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...
  25. Replies
    2
    Views
    2,226

    New to game programming, where to begin?

    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...
Results 1 to 25 of 43
Page 1 of 2 1 2