Search:

Type: Posts; User: DarkMasterBosel

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Using same code to do bit-checking across multiple classes' private variables

    Hi all,

    I am writing a bit-check function just to make it easier on myself to check status flags in my classes. I use char variables and each bit represents something on or off. Since I have...
  2. Visual Studio 2010 C++......how to access .bmp images from a *rc file in code?

    The topic pretty much says it here. I have searched for hours for information on how to accomplish this and have turned up empty handed. This is getting EXTREMELY frustrating.

    I am using...
  3. Replies
    0
    Views
    4,036

    Direct3D10 Sprites Alpha Blending

    I am having a really hard time finding any useful information on this subject, as my main source book is quite wanting. MSDN isn't very helpful in describing how to implement this.

    What I want to...
  4. As whiteflags said, you can (and should) set the...

    As whiteflags said, you can (and should) set the variable to 0 immediately upon declaration. However, if 0 is a potential value for your variables, an alternative is to set it to some other value...
  5. Replies
    26
    Views
    7,948

    You can include in your program. You...

    You can include <conio.h> in your program. You could then do something like this:



    cout<<"Press any key to continue"<<endl;
    _getch();


    Of course you can use whatever message you want in...
  6. Replies
    4
    Views
    4,433

    The declaration goes like this: GameSprite*...

    The declaration goes like this:


    GameSprite* pSpritePointer=new GameSprite[4];


    Originally, I had attempted to delete it like this:


    if(pSpritePointer)
  7. Replies
    4
    Views
    4,433

    Deleting an array from the heap

    I have never been in a situation where I wanted to use one until now, so I was a little surprised when I went to delete it and got a "Debug Assertion Error". I can access the array directly through...
  8. I was using reference originally because my...

    I was using reference originally because my laptop, where the program originated, is incompatible with the hardware device.
  9. E_OUTOFMEMORY hResult with DirectX 10

    Until now I had never seen this return code. My DirectX 10 program had been running perfectly fine on a Vista laptop, and the code used a REFERENCE device type for the Direct3D component.

    Now,...
  10. Replies
    3
    Views
    1,064

    Visual Studio issue...maybe?

    A couple of years ago, I wrote my first few C++ programs with Dev-C++. My brother tested them out on his old Compaq, and they worked fine. At some point I upgraded to Visual C++ and ultimately to...
  11. DirectInput Device Access (DirectX 10)

    hResult=DirectInput8Create(hInst,DIRECTINPUT_VERSION,IID_IDirectInput8,(void**)&directInputObject,0);
    CHECK_HRESULT
    ...
  12. Replies
    5
    Views
    1,633

    DirectX 10 Run Speed

    I just got a simple animation working, only to discover that even without any implanted delays in code, it runs at about 1.1 fps!!! I narrowed the bulk of it down to the Render() function that I use...
  13. Replies
    6
    Views
    1,708

    I wanted to make sure becuase as long as I have...

    I wanted to make sure becuase as long as I have been programming this is the first time I have run into that situation. Considering the whole concept of "data hiding", I was surprised to find that...
  14. Replies
    6
    Views
    1,708

    class Character { public: ...

    class Character
    {
    public:
    TryThis(Character*);
    private:
    short int Atk;
    short int Def;
    //other data here, yadda yadda
    };
  15. Replies
    6
    Views
    1,708

    private class member access

    I noticed this when I was doing some programming in my game.


    struct coord
    {
    short int x;
    short int y;
    coord* cLP;//this is a linked list pointer
    Character* cReside;//this points to a...
  16. Replies
    12
    Views
    2,477

    A weird quirk about floats......

    I am working on an RPG and I use floating point variables for raw character stats. When they are displayed (or used in combat) they are truncated to integers. I use the floating point variables to...
  17. Replies
    4
    Views
    1,922

    int casting for unsigned chars

    Would it be a "wise" choice to use char variables to store very small integers (such as 0 to 99) for the sake of saving memory (1 byte as opposed to 2 for a short int), and then casting that value to...
  18. Hmm, I will keep that in mind. I was actually...

    Hmm, I will keep that in mind. I was actually going to implement this system into a class anyhow, and include the "enum" in a declarations header file. Overloading the = operator makes sense though.
  19. I want to be able to use the actual integers,...

    I want to be able to use the actual integers, rather than an enumerated name.
  20. Restricting a type to a specific set of values...

    What I want to do is something similar to an enum. I want to declare a type that can only take on the integer values from 0 to 4, inclusive. I cannot seem to find a way to do this.
  21. Replies
    13
    Views
    17,603

    Got it working now, thanks a lot!

    Got it working now, thanks a lot!
  22. Replies
    13
    Views
    17,603

    Having a similar issue...

    I have my main.cpp file, and I have a slew of headers with class declarations and their accompanying .cpp files with their code. Take, for instance, Dummy1.h and Dummy1.cpp.

    Dummy1.h:

    ...
  23. Replies
    1
    Views
    2,393

    DirectSound problem

    #ifndef _LPCWAVEFORMATEX_DEFINED
    #define _LPCWAVEFORMATEX_DEFINED
    typedef const WAVEFORMATEX *LPCWAVEFORMATEX;
    #endif // _LPCWAVEFORMATEX_DEFINED


    I am using Visual Studio 2005 to do some...
  24. Replies
    5
    Views
    1,305

    Unicode......*scratches head* Don't know...

    Unicode......*scratches head* Don't know anything about that yet. *

    So far, using


    MessageBox(hWnd,TEXT("string 1"),L"string 2",MB_OK);

    either method that you guys presented works. The...
  25. Replies
    0
    Views
    1,147

    Visual Studio 2005 Includes

    Normally, I include windows.h since I am 'trying' to program a windows application. I have been using DirectX the last few days and I just got things working to where I could draw a triangle on the...
Results 1 to 25 of 27
Page 1 of 2 1 2