Results 1 to 4 of 4

Thread: I don't know what is happening here

Threaded View

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Question I don't know what is happening here

    I want to get the time since my computer was started. I use this function in vb

    GetTickCount()

    Now, in C++, I used this code to get the time since I started my computer.

    long int ticktime;
    ticktime = GetTickCount();

    Until now, it works fine but now I want to show a messageBox like this:

    MessageBox(NULL, ticktime, "The title", MB_OK);

    It gives me an error on the variable "ticktime". What is the problem??
    Last edited by abdul; Apr 30th, 2001 at 04:30 PM.
    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width