Search:

Type: Posts; User: borre_mosch

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,519

    get program file name from handle

    I placed an api hook over WriteProcessMemory (so I got a memory HANDLE), and now I need to see if this writing command is directed at a certain program of which I have only have the window name and...
  2. Replies
    10
    Views
    1,762

    Thanks, I'll look into this. (I'm using c++...

    Thanks, I'll look into this.

    (I'm using c++ btw.)
  3. Replies
    10
    Views
    1,762

    Yea thanks, that's also what I came up with....

    Yea thanks, that's also what I came up with.
    It's not flawless since it still doesn't allow whitespaces, but I guess I'll have to take that for granted then.
  4. Replies
    10
    Views
    1,762

    Thanks for the reply. I'm quite aware of what...

    Thanks for the reply.
    I'm quite aware of what the sscanf function does and how it does it.
    The problem is actually that the sscanf function does not have the right functionality, for example:

    ...
  5. Replies
    10
    Views
    1,762

    I think you misunderstood me. I'm not using the...

    I think you misunderstood me.
    I'm not using the symbols %k and %v, it's just to show that that the string is in the format:
    "*something* got too close to *somethnigelse*'s grenade."
    And I'm using...
  6. Replies
    10
    Views
    1,762

    Well that's what I would do, were it not that the...

    Well that's what I would do, were it not that the string could be anything, so I'll first have to check if it's even in the form of "%v got too close to %k's grenade", and only if so, get the value...
  7. Replies
    10
    Views
    1,762

    Parsing a string

    I am trying to parse a game's logfile, and I stumbled across a problem.
    The problem is that I can't seem to be able to parse the following string:
    %v got too close to %k's grenade.
    using:

    char...
  8. Replies
    6
    Views
    10,699

    Thanks for all the help. The job thing did the...

    Thanks for all the help.

    The job thing did the job...
  9. Replies
    6
    Views
    10,699

    First of all thanks for the reply Of course I...

    First of all thanks for the reply

    Of course I could use wm_close or terminateprocess, but I need to close down program B no matter how program A was shut down. If a user was to close down program...
  10. Replies
    6
    Views
    10,699

    program termination

    I made a program (let's say program A) that starts another program (which I did not make, let's say program B) using CreateProcess (I already have the process handle).
    What I want to achieve is that...
  11. Replies
    6
    Views
    1,488

    I tried to pass a pointer to the variable to the...

    I tried to pass a pointer to the variable to the function, but it didn't really work out...can anyone give an example of such a function?
  12. Replies
    6
    Views
    1,488

    well yes I guess I AM writing the pointer to the...

    well yes I guess I AM writing the pointer to the file, but is there any way to make the function return a string and not a pointer, other than using a global variable?
    By the way I still wonder why...
  13. Replies
    6
    Views
    1,488

    LPSTR problem

    I created a method to get a file in the current directory:


    LPSTR CApplication::GetFile(LPSTR File)
    {
    char Path[1000];
    GetModuleFileName(m_hInst,Path,1000);
    for(UINT...
  14. simulating doubleclick on item in listbox

    I'm trying to simulate a doubleclick on a listbox in a VB program (my program is c++, the target program is VB).
    I have the handle to the listbox and the main window, but I don't know what messages...
  15. Replies
    1
    Views
    4,829

    SendInput()

    I'm trying to give keyboard input to a program that's using directinput.
    To do this I tried using SendInput, but I figured this doesn't really work.
    MSDN suggests adding KEYEVENTF_SCANCODE to the...
  16. Replies
    0
    Views
    1,084

    compile error

    when I try to compile any of the DX SDK tutorial samples I get this

    C:\DX9SDK\Samples\C#\Direct3D\Tutorials\Tutorial1\CreateDevice.cs(13): The type or namespace name 'DirectX' does not exist in...
  17. Replies
    3
    Views
    957

    Thanks, that almost works, but for some reason...

    Thanks, that almost works, but for some reason when I make m_NumberOfStrings higher than 1015 (nLengthOfString being 500) I get an assert error.

    Do you have any idea what's the problem and how to...
  18. Replies
    3
    Views
    957

    allocation problem

    I'm rewriting a program I made before because I lost the
    source and I want to allocate a number of text strings that are 500 characters long.
    So I tried this:
    char *m_IDs[500]=(char...
Results 1 to 18 of 18