CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: laitinen

Page 1 of 72 1 2 3 4

Search: Search took 0.30 seconds.

  1. Re: String counter doesn't count the appropriate strings properly

    I think you should rewrite your code.

    Read each line from file separeted by "-". Then have a HashMap, check if you have the key there, if you have increase the value by one, if not add it and set...
  2. Replies
    11
    Views
    2,170

    Re: string manipulation

    ..or you could try strtok or strtok_s
  3. Replies
    2
    Views
    1,380

    Re: Counter on a Timer

    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

    ...
  4. Re: Different alter table behaviour on different DBMS's

    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...
  5. Different alter table behaviour on different DBMS's

    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...
  6. Replies
    6
    Views
    12,460

    Re: Tooltips on CWnd Derived Class

    Would this help? MFC Dialog: Add tooltips to your controls in a dialog
  7. Re: [Help me Plz] Decimal to Binary and "Printing Stars"

    See if you can find an apropriate method in the Integer class.

    Laitinen
  8. Replies
    14
    Views
    2,365

    Re: "Tiny" Mode in Visual studio 2005???

    What is TINY mode?
  9. Replies
    3
    Views
    1,130

    Re: Can someone please explain...

    && 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...
  10. Replies
    11
    Views
    1,627

    Re: Clarification regarding finally blocks

    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
  11. Replies
    11
    Views
    1,627

    Re: Clarification regarding finally blocks

    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...
  12. Re: compiler errors using complex in C++

    cf0 = 3.0f * cf;
    cf0 = cf * 3.0f;

    3.0 is interpreted as a double, until you add the f-postfix.
  13. Replies
    5
    Views
    4,298

    Re: Getting thread id of a process

    which thread id? A process may have many threads.
  14. Replies
    5
    Views
    4,298

    Re: Getting thread id of a process

    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
  15. Replies
    1
    Views
    2,639

    Re: std::localtime

    Take a look here: struct tm

    And especially this: tm_mon, means months since January - where the range is 0-11.

    Laitinen
  16. Replies
    7
    Views
    1,279

    Re: how to get the string inputted by a user

    :mad:
    #include <string>
  17. Thread: start hidden

    by laitinen
    Replies
    8
    Views
    1,457

    Re: start hidden

    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?
    ...
  18. Thread: start hidden

    by laitinen
    Replies
    8
    Views
    1,457

    Re: start hidden

    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...
  19. Replies
    1
    Views
    610

    Re: problem in function pointer

    Are you serious? How the H*** are we supposed to solve your problem based on that description?

    Laitinen
  20. Re: Problem running release version of my app

    Just to be sure; The latest version that is ok on Australian machines, they are running the release version, right?
  21. Replies
    3
    Views
    798

    Re: Please check this program...

    How can I wait until a process ends?

    Cheers,

    Laitinen
  22. Replies
    3
    Views
    1,074

    Re: how to get the system as a string

    FILETIME to string

    Laitinen
  23. Thread: start hidden

    by laitinen
    Replies
    8
    Views
    1,457

    Re: start hidden

    Have a look here: How to start your dialog application in hidden mode?

    Cheers,

    Laitinen
  24. Replies
    2
    Views
    1,059

    Re: Simple While Looping Question

    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.
    ...
  25. Thread: 2d Arrays

    by laitinen
    Replies
    2
    Views
    570

    Re: 2d Arrays

    void draw()
    {
    char Random = ' ';
    for(int i = 0;i<24;i++)
    {
    for(int j=0;j<24;j++)
    {

    random(Random);
    theBoard[i][j]=Random;
Results 1 to 25 of 1783
Page 1 of 72 1 2 3 4





Click Here to Expand Forum to Full Width

Featured