January 28th, 2011 03:07 PM
..or you could try strtok or strtok_s
January 26th, 2011 06:42 AM
Problem here is that your counter is reset to 0 every time your run method runs.
Just move it out of the run method:
class RemindTask extends TimerTask {
int num = 3600; //one hour
...
April 21st, 2009 06:58 AM
Yup that is correct.
I also found the solution: To enforce SQL Server to apply the default value to all old records, you will have to do like this:
alter table testtable add c2 int default 0...
April 21st, 2009 02:28 AM
Hi!
For test purposes I have a table called 'testtable' with one column 'c1' which is an integer and the primary key of the table.
Then I want to add a new integer column to the table with a...
December 8th, 2008 05:35 AM
Would this help? MFC Dialog: Add tooltips to your controls in a dialog
December 5th, 2008 06:08 AM
See if you can find an apropriate method in the Integer class.
Laitinen
December 5th, 2008 04:42 AM
December 5th, 2008 04:40 AM
&& and || are binary logical operators, or more specifically - logical binary short circuit operators. That means that it will only evalute the first operand if the result of the evaluation is...
December 5th, 2008 03:16 AM
No, in this case the finally clause will not be executed. A finally clause belongs to the try/catch clause(s) just before itself.
Laitinen
December 5th, 2008 03:09 AM
The finally clause will always run except if there is a call to System.exit(0) in a try or a catch clause before the finally clause.
Also, if the finally clause throws any exceptions that is not...
December 4th, 2008 02:06 PM
cf0 = 3.0f * cf;
cf0 = cf * 3.0f;
3.0 is interpreted as a double, until you add the f-postfix.
December 4th, 2008 03:55 AM
which thread id? A process may have many threads.
December 4th, 2008 03:38 AM
You should use CreateProcess instead. This will fill the PROCESS_INFORMATION struct for you.
Take a look here: Processes: How can I start a process?
Laitinen
December 4th, 2008 12:37 AM
Take a look here: struct tm
And especially this: tm_mon, means months since January - where the range is 0-11.
Laitinen
December 3rd, 2008 09:24 AM
December 3rd, 2008 03:44 AM
You should get used to check the many great FAQs here at CodeGuru. If you had done that you would have found this:
MFC General: How to process command line arguments in a MFC application?
...
December 2nd, 2008 05:10 AM
What do you mean? If you start it from the desktop you want it to be visible? You might add command line arguments to your app, and use them when starting from desktop. Search for command line...
December 2nd, 2008 02:26 AM
Are you serious? How the H*** are we supposed to solve your problem based on that description?
Laitinen
December 2nd, 2008 02:23 AM
Just to be sure; The latest version that is ok on Australian machines, they are running the release version, right?
December 2nd, 2008 02:20 AM
How can I wait until a process ends?
Cheers,
Laitinen
December 2nd, 2008 02:17 AM
FILETIME to string
Laitinen
December 2nd, 2008 02:11 AM
Have a look here: How to start your dialog application in hidden mode?
Cheers,
Laitinen
November 27th, 2008 04:11 AM
because after you have written "2" to the console y==2.
Then the while loop checks if the condition is true -> 2>1 is true so it decrements y by 1, and continue to the loop. And now y==1.
...
November 27th, 2008 02:19 AM
void draw()
{
char Random = ' ';
for(int i = 0;i<24;i++)
{
for(int j=0;j<24;j++)
{
random(Random);
theBoard[i][j]=Random;
November 26th, 2008 03:02 PM
Just my two pennies on this one.. I think you should have really good reasons for disabling/removing the "x" on the system menu. That is standard windows behaviour, and you should try your very best...