Search:

Type: Posts; User: markiz

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    3,215

    What about using MoveFileEx? (I can wait for...

    What about using MoveFileEx? (I can wait for reboot)
    The problem with this is that I can't delete folder (where the program is located) because I have other files that need to be deleted as well,and...
  2. Replies
    10
    Views
    3,215

    thanks Niara.

    thanks Niara.
  3. Replies
    10
    Views
    3,215

    Elysia, I just need. Self-delete Like an...

    Elysia, I just need.

    Self-delete

    Like an unistaller
  4. Replies
    10
    Views
    3,215

    How to self-delete program?

    Win32 project - VC++

    How can I self-delete program I run?
  5. Replies
    16
    Views
    2,204

    OK, thank you very much! P.S. Thanks Elysia....

    OK, thank you very much!
    P.S.

    Thanks Elysia. You're a programming master! How the hell do you know every thing?
    :)
  6. Replies
    16
    Views
    2,204

    Done that, is it possible to insert new line...

    Done that, is it possible to insert new line between 2 last lines, without copying the last line??

    Because the operation must be very fast and I can't recopy last time each time.
  7. Replies
    16
    Views
    2,204

    I still can't make it work: After I've created...

    I still can't make it work:
    After I've created new file via CreateFile,

    I set pointer:

    SetFilePointer(file, 0, 0, FILE_END);

    Now how to continue from here?
  8. Replies
    16
    Views
    2,204

    Will it allow to do it by multi process?

    Will it allow to do it by multi process?
  9. Replies
    16
    Views
    2,204

    And after I get the position, how do I write to...

    And after I get the position, how do I write to file from this position?
  10. Replies
    16
    Views
    2,204

    I see. Now some code questions: As I wrote I use...

    I see. Now some code questions:
    As I wrote I use WriteFile function.

    How do I set new position to write from (I mean how to write backwards to wanted position and then write from this position)?
  11. Replies
    16
    Views
    2,204

    I am not sure I understand. , what do you mean...

    I am not sure I understand.
    , what do you mean by this?
    123
    ABC
    ###

    Between ABC and ###?

    What data? The last line (###) or all other data (123,ABC)?
    If I wite this data to file I'll get...
  12. Replies
    16
    Views
    2,204

    Appending txt file above last line?

    I create file like this: (I need it shared...)


    if ( (file = CreateFile(file_name.c_str(), GENERIC_WRITE , FILE_SHARE_WRITE ,NULL,OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL,NULL)) == INVALID_HANDLE_VALUE...
  13. Replies
    31
    Views
    21,780

    Ok, now the event us triggered when new process...

    Ok, now the event us triggered when new process is created.
    How Do I get the file name and path of this process?
  14. Replies
    31
    Views
    21,780

    #define _WIN32_DCOM- what it for? Why do i need...

    #define _WIN32_DCOM- what it for? Why do i need to include it?
  15. Replies
    31
    Views
    21,780

    Ok, the COINIT_MULTITHREADED error was fixed by...

    Ok, the COINIT_MULTITHREADED error was fixed by adding #define _WIN32_DCOM to stdafx.h, why it's needed there?
  16. Replies
    31
    Views
    21,780

    What kind of project did you create?

    What kind of project did you create?
  17. Replies
    31
    Views
    21,780

    Me too.

    Me too.
  18. Replies
    31
    Views
    21,780

    If it compiles to you maybe you send this code to...

    If it compiles to you maybe you send this code to me?
    By email or upload it to some web-storage.
  19. Replies
    31
    Views
    21,780

    using namespace std; this one I already have. ...

    using namespace std; this one I already have.

    #define _WIN32_WINNT 0x400; didn't help
  20. Replies
    31
    Views
    21,780

    I still get COINIT_MULTITHREADED error! Though...

    I still get COINIT_MULTITHREADED error! Though I've included:
    #include <windows.h>
    #include <objbase.h>

    Maybe, if it's not to hard, you can compile it yourself?


    other errors:
    Error 1 error...
  21. Replies
    31
    Views
    21,780

    I thought it's a full source. ...

    I thought it's a full source.


    <objbase.h> didn't help! still same error.

    P.s. total count 46 errors!
  22. Replies
    31
    Views
    21,780

    Maybe I should Create another type of project?

    Maybe I should Create another type of project?
  23. Replies
    31
    Views
    21,780

    Why it wasn't included in the example? Now I...

    Why it wasn't included in the example?

    Now I have other "include" errors:
    Error 1 error C2065: 'COINIT_MULTITHREADED' : undeclared identifier
  24. Replies
    31
    Views
    21,780

    At first it complained about "stdafx.h" , so I...

    At first it complained about "stdafx.h" , so I included it.
    Now it complains about:
    Error 1 error C2065: 'HRESULT' : undeclared identifier

    strange, cause example should have all includes,...
  25. Replies
    31
    Views
    21,780

    Thanks, But I have problems compiling the code...

    Thanks,
    But I have problems compiling the code from the example, though I didn't change anything.

    (Environment: Visual studio 2005, Visual C++ win32 console application)
Results 1 to 25 of 26
Page 1 of 2 1 2