Search:

Type: Posts; User: Marcos

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,851

    Well, images, xml files, text files, anything is...

    Well, images, xml files, text files, anything is what I'm refering too. How do you embed things into an executable?
  2. Replies
    2
    Views
    1,851

    Embedding resources into executables

    Is it possible to embed resources into executables like in Windows? I've looked through the gcc compiler and I see no mention of this. Is it necessary to use some other tool?
  3. Replies
    7
    Views
    1,940

    Thanks.

    Thanks.
  4. Replies
    7
    Views
    1,940

    DialogBox won't close with the X

    Hello, I'm new to the Windows API and I'm trying to make a dialog based applicaion, so I added a dialog resource which has a frame with the X button on top, the only problem is that when I press the...
  5. Replies
    4
    Views
    1,192

    I can't beleive this, I have been programming for...

    I can't beleive this, I have been programming for 4 years and I learn this until know? >_<

    In my defense I bearly ever use C >_>

    Thanks man, you have made it possible for me to sleep tonight.
  6. Replies
    4
    Views
    1,192

    Whats this? I can't read doubles any more!

    #include <stdio.h>

    int main()
    {
    double b;

    scanf("%f", &b);
    printf("%f\n", b);

    system("pause");
  7. Thanks a bunch Daved, as always you are the man....

    Thanks a bunch Daved, as always you are the man.

    Especially thanks for the last comment about making sure the destructor was virtual, it got me checking and I discovered that under certain...
  8. erasing elements from a boost::ptr_vector (boost n00b)

    I'm having trouble ereasing elements from the ptr_vector, sometimes it crashes my program, here is the method where it happens



    void Juego::checkState()
    {
    Bullet *b;
    ...
  9. Damn I can't beleive I was being so stupid, the...

    Damn I can't beleive I was being so stupid, the problem was that the rect of each figure was "out of date" when I checked for collision.

    Thanks for trying to help anyway, and sorry for wasting...
  10. Ok here is what I'm trying to do now: void...

    Ok here is what I'm trying to do now:


    void Entity::move(int milis, std::vector<Entity*> entities)
    {
    int x = m_x, y = m_y;

    m_x += (milis*m_dx)/10;
    for (int i = 0; i <...
  11. That works fine for x, but what do I do about y?...

    That works fine for x, but what do I do about y? the movement vector can be in any direction.
  12. Help with reacting to collision in my 2D sidescroller

    To detect collision I'm using a rectangle for each entity in the game, but Im having trouble reacting to it in an appropiate way. What I was trying to do was find the smallest distance for the player...
  13. Thread: Input question

    by Marcos
    Replies
    5
    Views
    888

    If you use an array you would have to either have...

    If you use an array you would have to either have a max amount of numbers, or learn to use dynamic memory. You could also use an std::vector<int> and not have to worry about memory, as the other...
  14. Replies
    5
    Views
    1,014

    Thanks a bunch everyone, especially Daved. I used...

    Thanks a bunch everyone, especially Daved. I used your first suggestion and it works perfectly.
  15. Replies
    5
    Views
    1,014

    Different question about inheritance

    Here is what I'm trying to do:
    Create a Vector of a parent class, and fill it up with different children of that class, then make a loop which cicles through the vector and calls a method from each...
  16. Replies
    10
    Views
    42,785

    Thanks, Im going to try that. [edit] Yep,...

    Thanks, Im going to try that.

    [edit]
    Yep, that did it. Thanks a lot.
  17. Replies
    10
    Views
    42,785

    Then how do I do it so they dont wait for the...

    Then how do I do it so they dont wait for the user to press enter?
  18. Replies
    10
    Views
    42,785

    What can I use instead of getch() in C#?

    For gettin input without the user hitting enter in a console application.

    Thanks in advance.
  19. Replies
    2
    Views
    1,083

    You mean like this? gUpKey =...

    You mean like this?


    gUpKey = gLeftKey = gDownKey = gRightKey = false;
    if (GetAsyncKeyState(VK_UP) & SHRT_MAX) gUpKey = true;
    else gUpKey = false;
    if...
  20. Replies
    2
    Views
    1,083

    Problem getting input from keyboard

    Here is the code Im using right now


    if (GetAsyncKeyState(VK_UP) & SHRT_MAX) gUpKey = true;
    else gUpKey = false;
    if (GetAsyncKeyState(VK_LEFT) & SHRT_MAX) gLeftKey = true;...
  21. Replies
    5
    Views
    1,782

    I see, :( so there is NO way to access the video...

    I see, :( so there is NO way to access the video memory on XP?
    If I used linux (ubuntu) would I be able to directly access the memory?
  22. Replies
    5
    Views
    1,782

    Help with mode13 with djgpp on win XP

    I really want to be able to use mode13, but for some reason I cant seem to access the video memory at 0xA0000, if I call my plot pixel function the program just exits, here is my plot pixel function:...
  23. Replies
    0
    Views
    777

    Why isnt this code doing anything?

    Im using dgjpp v2 and it compiles with no errors, it gives me exit code 255 (I have no idea what that means).

    But this does nothing, its supposed to draw a pixel and wait for a keypress....


    ...
  24. Replies
    132
    Views
    721,330

    Sticky: CORRECT LINK

    CORRECT LINK
  25. Thread: Problem

    by Marcos
    Replies
    5
    Views
    859

    Because those are integers.

    Because those are integers.
Results 1 to 25 of 118
Page 1 of 5 1 2 3 4