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...
Type: Posts; User: jasperleeabc
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...
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...
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?)?
Somehow Dev-C++ isn't having <limits>... What can I do? Can anyone send me the .h and the .o?
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;
...
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);
Problem solved, many thanks!
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...
data1.in is in the directory my executable is in, how should I do it?
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...
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,...
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", //...
What about dialogs declared in .rc? Something like LTEXTW?
Thanks.
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...
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.
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...
but if he's still learning basic data structures, can he handle the OO, i mean, has he learnt about OO yet?
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...
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...
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);...
oh yes, ->....... what was I thinking.......
Got it done. Problem solved already... I forgot to put the brackets around *namehash[t] ......
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*,...
i actually tried this way first, but isn't working...
.Name() returns a std::string. So I guess the "fix" in the link you gave me is of no use because of this...