Search:

Type: Posts; User: jasperleeabc

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,162

    Help with program self destruction

    Hi,

    I would like to ask how do you destroy the permanent copy of the .exe within the program itself? I tried remove from cstdio, and a probably wrong approach in writing a single 0 to the program...
  2. Replies
    9
    Views
    1,221

    runtime error... somehow, I can't even execute: ...

    runtime error... somehow, I can't even execute:



    string temp("abc");


    I believe this is happening just after an automatic update from Microsoft on my XP last night... Strange...
  3. Replies
    9
    Views
    1,221

    Dev-C++ is convenient (and used in OI here in...

    Dev-C++ is convenient (and used in OI here in Hong Kong, so I better not change). Does anyone have the .h and .o for <limits> (I guess it isn't copyrighted?)?
  4. Replies
    9
    Views
    1,221

    Somehow Dev-C++ isn't having ... What can...

    Somehow Dev-C++ isn't having <limits>... What can I do? Can anyone send me the .h and the .o?
  5. Replies
    9
    Views
    1,221

    Here is a more complete code (all those relevant,...

    Here is a more complete code (all those relevant, even some I don't think might be relevant):



    vector<string> name;
    vector<string> problem;
    vector<int> score;
    int n, p;

    ...
  6. Replies
    9
    Views
    1,221

    Strange problem with std::string

    Hi,

    I am having a very strange problem with std::string. Here's the code:



    char temp[100];
    gets(temp);
    printf("%s\n", temp);
    string t(temp);
  7. Replies
    13
    Views
    2,512

    Problem solved, many thanks!

    Problem solved, many thanks!
  8. Replies
    13
    Views
    2,512

    I don't have any errors printed now, but it's...

    I don't have any errors printed now, but it's still not reading from data1.in...

    Code:


    STARTUPINFO si;
    PROCESS_INFORMATION pi;

    HANDLE hin = CreateFile("E:\\Personal...
  9. Replies
    13
    Views
    2,512

    data1.in is in the directory my executable is in,...

    data1.in is in the directory my executable is in, how should I do it?
  10. Replies
    13
    Views
    2,512

    This is still not working? STARTUPINFO...

    This is still not working?



    STARTUPINFO si;
    PROCESS_INFORMATION pi;

    HANDLE hin = CreateFile("data1.in", GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    if...
  11. Replies
    13
    Views
    2,512

    Thanks for your help. But now I'm having trouble...

    Thanks for your help. But now I'm having trouble with this code:



    STARTUPINFO si;
    PROCESS_INFORMATION pi;

    HANDLE hin = CreateFile("data1.in", GENERIC_READ, 0, NULL, OPEN_EXISTING,...
  12. Replies
    13
    Views
    2,512

    Help with CreateProcess()

    Hi,

    I have a problem using CreateProcess().

    Let me show you the code first:



    if(!CreateProcess(NULL, // No module name (use command line)
    "POI.exe < data1.in > data1.out", //...
  13. Replies
    7
    Views
    1,257

    What about dialogs declared in .rc? Something...

    What about dialogs declared in .rc? Something like LTEXTW?

    Thanks.
  14. Replies
    7
    Views
    1,257

    But do I have to type in any commands before...

    But do I have to type in any commands before using unicode, like if I want to put something like this:



    LTEXT "Some Chinese here", ID, 1, 1, 1, 1


    in my dialog, how do I do it? I tried just...
  15. Replies
    7
    Views
    1,257

    How do I use unicode? And does that mean if I can...

    How do I use unicode? And does that mean if I can read chinese on my computer then it'll be fine, or do you mean some other packages?

    Thanks.
  16. Replies
    7
    Views
    1,257

    Chinese in .rc

    Hi,

    How do you write chinese in windows (in the .rc) using Win32 APIs? Also, how do you allow users to type in chinese in EDITTEXT and also how to store it? If it somehow matters, I'm developing...
  17. Replies
    16
    Views
    2,377

    but if he's still learning basic data structures,...

    but if he's still learning basic data structures, can he handle the OO, i mean, has he learnt about OO yet?
  18. Replies
    16
    Views
    2,377

    Totally agree with learning more about...

    Totally agree with learning more about programming before getting into GUI programming. I mean, if you are still studying basic data structures, then I'm quite sure you are not that ready and...
  19. Somehow I forgot to look for if I have changed...

    Somehow I forgot to look for if I have changed "size" in the loop, I only looked for any change in "c" and "flag". I'll check it later (since it's late at night in local time already). Thanks for you...
  20. Need help with a strange for-loop problem

    Hi,

    I have a really really strange problem with a for loop. Let me show you my code first:



    if(size == 2){
    MessageBox(hwnd, "2", "size", MB_OK);
    }
    for(long c = 0; (c < size) && (flag);...
  21. Replies
    11
    Views
    3,347

    oh yes, ->....... what was I thinking.......

    oh yes, ->....... what was I thinking.......
  22. Replies
    11
    Views
    3,347

    Got it done. Problem solved already... I forgot...

    Got it done. Problem solved already... I forgot to put the brackets around *namehash[t] ......
  23. Replies
    11
    Views
    3,347

    thanks, but I actually simply changed the string...

    thanks, but I actually simply changed the string to const char* :P. Anyway, I need some other help now. Somehow, my use of the hash doesn't work...

    Declaration:



    hash_map<const char*,...
  24. Replies
    11
    Views
    3,347

    i actually tried this way first, but isn't...

    i actually tried this way first, but isn't working...
  25. Replies
    11
    Views
    3,347

    .Name() returns a std::string. So I guess the...

    .Name() returns a std::string. So I guess the "fix" in the link you gave me is of no use because of this...
Results 1 to 25 of 38
Page 1 of 2 1 2