Search:

Type: Posts; User: execute

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    1,237

    Really, who writes this stuff? Sounds worse than...

    Really, who writes this stuff? Sounds worse than my physics textbook.

    I recommend just reading several different website's tutorials on friend classes to get a better idea. Sometimes books can...
  2. Thread: pointers !!!

    by execute
    Replies
    4
    Views
    1,073

    It's really a needless code, I wouldn't ever use...

    It's really a needless code, I wouldn't ever use something like that. It doesn't even look right. I don't even think it's used in this code heh. I don't even know what the typedef is called... Is it...
  3. Thread: Am I leaking?

    by execute
    Replies
    15
    Views
    2,205

    In other languages like C# and Java there is a ...

    In other languages like C# and Java there is a


    try {
    Something
    } catch(Exception e){

    } finally {
    delete ....;
    file.close();
  4. Thread: ofstream close

    by execute
    Replies
    12
    Views
    2,859

    Of course it's good practice. You learn that when...

    Of course it's good practice. You learn that when you create something new, you learn to delete it. You use malloc you learn to free. It is good practice and it frees up memory faster than letting it...
  5. Replies
    6
    Views
    10,163

    If you try to search for some C++ IRC clients,...

    If you try to search for some C++ IRC clients, there may be open source tiny programs that implement basic IRC features (they are popular so there should be many). They are very simple commands that...
  6. Replies
    2
    Views
    3,820

    Definitely make sure you check the error messages...

    Definitely make sure you check the error messages if any with WSAGetLastError(), make sure you log and output everything to make sure you diagnosed the problem correctly.
  7. Replies
    20
    Views
    25,424

    I'm not sure if I'm just imagining things but is...

    I'm not sure if I'm just imagining things but is this right?



    HINSTANCE hinstDLL_;
    myClass myInstance( _hinstDLL );
  8. Replies
    2
    Views
    3,449

    I think your code should be in Windows...

    I think your code should be in Windows Programming section.

    And it seems like you have too much information here, you need to isolate your problem.
  9. Replies
    4
    Views
    1,223

    You know a simple googling of a file/vector...

    You know a simple googling of a file/vector tutorial might have helped you out a lot more.
  10. Replies
    5
    Views
    3,090

    You know I always seem to use strings instead,...

    You know I always seem to use strings instead, never had a need to use stringstream except in special cases, especially conversions. Perhaps if you keep having to reuse a stringstream might as well...
  11. Thread: ofstream close

    by execute
    Replies
    12
    Views
    2,859

    When using ofstream it is good practice to...

    When using ofstream it is good practice to definitely always stream.close(); after you've finished using it. It's definitely the safer way.
  12. Thread: right align

    by execute
    Replies
    6
    Views
    22,060

    This might be old but I thought i'd help some of...

    This might be old but I thought i'd help some of you out...

    If you have "cout << right << num1 << num2 << num3 << num4;

    I don't think num2,3,4, will have the right align. Doesn't seem to work...
  13. Thread: compile error

    by execute
    Replies
    2
    Views
    915

    What is the IDE you are using? Code::Blocks...

    What is the IDE you are using?

    Code::Blocks should be fine way to compile things. Even DEvC++ is that what you're using?

    Perhaps you downloaded the IDE but clicked "no" to download the mingw...
  14. Replies
    8
    Views
    1,294

    You could try using a tutorial online for C++...

    You could try using a tutorial online for C++ Classes or cplusplus.com has a nice one as well. Hope it helps.
  15. It looks like you are building it in C#... If...

    It looks like you are building it in C#...
    If you wanna build it in C++, you would need to use a graphics library such as SDL or allegro, but if you want it simple like yours, a normal GUI library...
  16. Replies
    8
    Views
    5,338

    Yep indeed we are.

    Yep indeed we are.
  17. Replies
    27
    Views
    4,877

    I do believe an array name IS the first value's...

    I do believe an array name IS the first value's address.

    For example:


    int array[5];
    *(array) = 5;
    array[0] = 5; // same thing
  18. Replies
    8
    Views
    5,338

    Wow guys, awesome delayed slow-motion response...

    Wow guys, awesome delayed slow-motion response :P. I already said that :P. hehehe
  19. Replies
    5
    Views
    1,529

    A C array...

    A C array is very simple, you can ask the user:


    int value;
    int array2d[10][5];
    for(int k = 0; k < 10; k++){
    for(int i = 0; i < 5; i++){
    cout << "What is value for index i " << i << "...
  20. Replies
    8
    Views
    5,338

    I believe it's 3 times the loop. and why do you...

    I believe it's 3 times the loop.
    and why do you do :


    pid = fork();

    if ( (pid=fork()) > 0) {


    Isn't one pid = fork() enough?
  21. Replies
    3
    Views
    1,531

    If you mean in the code, I believe there is a way...

    If you mean in the code, I believe there is a way to grab a BMP handle and check it's dimensions using RECT.

    If you mean outside, use photoshop or something.
  22. Replies
    5
    Views
    1,356

    If you are in the same program, then yes you...

    If you are in the same program, then yes you check the WM_PAINT being sent to the program. However, in a separate program, you'll have to do some DLL injection or Hooking probably.
  23. Replies
    11
    Views
    1,917

    Everyone seems to be encouraging me to really...

    Everyone seems to be encouraging me to really look into DirectX itself.

    The thing is, I was always assuming that a game engine that wraps itself for DirectX would simplify things, but when I look...
  24. Thread: Clear screen?

    by execute
    Replies
    14
    Views
    3,572

    Do you mean in console? system("cls"); That...

    Do you mean in console?

    system("cls");

    That should do it.
  25. Replies
    11
    Views
    1,917

    Anyone use Game Engines Directly?

    I was wondering about all the choices for game engines.

    Learning DirectX and OpenGL is one option, but it can be tedious to learn especially since resources online are scarce (somewhat). There's...
Results 1 to 25 of 143
Page 1 of 6 1 2 3 4