dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RogerThat123

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    6
    Views
    1,103

    Re: cin Problem

    Random times it will skip the cin and say there is a 2 in the buffer for some reason, rather than me entering the correct number it will take 2 as the input and not let the user enter anything and...
  2. Replies
    1
    Views
    801

    Re: Bellman Ford

    please i am desperate
  3. Replies
    6
    Views
    1,103

    Re: cin Problem

    There is really no way to clear cin? I find that rather stupid, how about a ghetto way that intitiates a backspace button press 10 times or something?
  4. Replies
    1
    Views
    801

    del

    delete
  5. Replies
    0
    Views
    2,989

    Bellman Ford Algorithm

    del
  6. Replies
    6
    Views
    1,103

    Re: cin Problem

    Its a key based menu, that means Im waiting for UP and DOWN arrow keys to be pressed. I cant help that a user may hit alphabet letters on the keyboard during this wait loop.

    Then it skips past my...
  7. Replies
    6
    Views
    1,103

    cin Problem

    I have a loop like so

    while (!GetAsyncKeyState(VK_RETURN)){}

    cin >> MyVar;

    So when the user presses enter it then will output a message and ask for a response. Problem is that during when...
  8. Replies
    1
    Views
    1,223

    Clear cin Buffer

    I am having a hell of a time trying to clear the cin buffer.

    I have a loop in my program that waits til you press a specific key, but during that time if you are pressing random letters etc, once...
  9. Replies
    17
    Views
    1,526

    Re: Vector of Pointers Erase

    I took your advice and played with the pairs a little bit, its much easier to maintain now.
  10. Replies
    17
    Views
    1,526

    Re: Vector of Pointers Erase

    edit:

    thanks guys it works now!!

    i agree with you paul i tried to get them in the same struct but because I needed to use the

    router* vectorin the Router struct I couldnt declare another...
  11. Replies
    17
    Views
    1,526

    Re: Vector of Pointers Erase

    Ill try what you posted, im trying to get it to compile.
  12. Replies
    17
    Views
    1,526

    Re: Vector of Pointers Erase

    This is how I am adding the pointers into the vector.

    In my first post is how I am removing. I dont understand why when I remove it, it works fine until the very last one.
  13. Replies
    17
    Views
    1,526

    Vector of Pointers Erase

    So heres how I have this set up.

    struct myStruct
    {
    public:
    vector <myStruct*> nextstruct;
    string name;
    };

    I create a vector of my struct here
  14. Replies
    3
    Views
    718

    Re: Walking the module list?

    Its seems like a little too much for what I want to accomplish. I just need to print the list. Can you see anything wrong with what I posted above
  15. Replies
    3
    Views
    718

    Walking the module list?

    MODULEENTRY32 me32;
    HANDLE hModuleSnap = INVALID_HANDLE_VALUE;
    CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, GetCurrentProcessId() );

    if( Module32First( hModuleSnap, &me32 ) )
    do {...
  16. Replies
    1
    Views
    1,004

    Re: Weird Detour Problem

    I swear it worked yesturday, if anyone has any clue what might be the issue please let me know even if its just a hunch. I also experienced some weirdness in another detour of mine, one day it works...
  17. Replies
    1
    Views
    1,004

    Weird Detour Problem

    Ok so Im detouring loadlibrary, I did it yesturday and logged everything perfect, today I readded it for testing and it crashed my program. Im logging it and its calling loadlibrary over and over on...
  18. Thread: Detours?

    by RogerThat123
    Replies
    4
    Views
    825

    Re: Detours?

    thanks
  19. Thread: Detours?

    by RogerThat123
    Replies
    4
    Views
    825

    Re: Detours?

    But say its pass by reference, in the first function would they receive NULL, or would they receive whatever is passed back from the orig function
  20. Thread: Detours?

    by RogerThat123
    Replies
    4
    Views
    825

    Detours?

    I want to know what the difference of this detour would be



    DWORD WINAPI MYFUNCTION (int num1, file *filename, DWORD size)
    {
    originalMYFUNCTION(num1, filename, size);
    num1 =...
  21. Replies
    19
    Views
    7,399

    Re: Compatibility Problem

    On windows XP, the function is always defined as GetMappedFileNameA() GetMappedFileNameW() in psapi.dll

    On windows 7, the function can either be define as GetMappedFileNameA() GetMappedFileNameW()...
  22. Replies
    19
    Views
    7,399

    Re: Compatibility Problem

    I need to support XP, VISTA, Windows 7.

    the ansi and unicode are both defined in both libraries. Im not calling loadlibrary, Im simply detouring the functions, the problem being the location of...
  23. Replies
    19
    Views
    7,399

    Re: Compatibility Problem

    Yes, I answered them before I realized I must execute the command from windows cmd prompt. Whats there to answer, shown in the pic its working. It just goes too fast to see all the earlier functions....
  24. Replies
    19
    Views
    7,399

    Re: Compatibility Problem

    Ok i typed the full path in and it works but I can only see a certain amount of functions, the last 50 or so

    pic: http://i47.tinypic.com/2yl8u14.png

    Might be a dump question but how do I see...
  25. Replies
    19
    Views
    7,399

    Re: Compatibility Problem

    Im running directly the dumpbin.exe and typing the command. What am I supposed to be using, the windows cmd prompt?
Results 1 to 25 of 119
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)