Search:
Type: Posts; User: davidk
Search:
Search took 0.04 seconds.
-
April 11th, 2010, 02:46 PM
Consider keybd_event() function, it emulates keyboard events, but it will work only if your window is focused.
Use WM_SETTEXT message to add text into that window, it has not to be focused.
-
April 11th, 2010, 02:37 PM
If you are using big text files (or where else do you use such a big string?) then it is better to read them by small parts or start using file mapping.
You never know how big a file may be, so...
-
April 11th, 2010, 02:25 PM
Basically, the same loop as first one, but change the variable 'Total' to 'Total2'.
Consider using arrays instead of variables like 'Total*' in case you wanna read next 3 days, or even more.
-
April 11th, 2010, 02:02 PM
Go through your code line by line with a debugger. Check what you are receiving from the mail server. You may also print the messages you are sending and receving to STDOUT, this may help.
Tell us...
-
April 11th, 2010, 01:56 PM
Use another loop, something like
for(int k=25; k<=48; k++)
Also, you have to add to 'total' variable, not overwrite its data.
Total2 += Data1;
-
March 27th, 2010, 01:19 PM
Use mbrtowc() function, it will help you to check the length of every character.
-
March 27th, 2010, 01:19 PM
Use MessageBox() or printf() functions to see the place of code where your program fails. It may take some time to resolve but is useful method when no debuggers or other helpful tools are near.
Use...
-
March 27th, 2010, 01:18 PM
I'll add some details on how to open the file to append the data to it:
FILE *f = fopen("your_file", "a");
-
March 27th, 2010, 01:17 PM
It is not possible to declare variables of the same name twice.
You have already declared array 'myArray', if you want to declare a pointer to it, name it differently, e.g.
char *myArray_ptr =...
-
March 27th, 2010, 01:17 PM
Consider this:
...
class A
{
friend class B;
...
Now class B may call protected function from class A.
-
March 27th, 2010, 01:15 PM
To properly convert wchar_t to char you may use wcsrtombs() standard function. You may specify any encoding to use and the function is completely safe.
|
Click Here to Expand Forum to Full Width
|