TimeStamp Problem - VS2008

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kapik
    New Member
    • Mar 2012
    • 9

    #1

    TimeStamp Problem - VS2008

    Hi!
    As usual -problems occur when working with additional libraries...

    BUT, the problem seems to be simple probably I am just
    too tired to see the cause...

    @ Kernel there's a function "GetTime()"
    I want to use it to create a Log entry like this:

    Code:
     myTime(GetTime()): someTexT

    the code looks like this:

    Code:
    int64 myTime;
    
    myTime = IKernel::GetTime();
    And I get C2352 - illegal call of non-static function..

    I simply want to use the current time from kernel- nothing else..

    I would be thankfull for any suggestions. :)
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You will need an object in order to call this function:

    Code:
    IKernel* myObject = new ??? ;
    myTime = myObject->GetTime();
    Without looking at the OS documentation, I don't know what type of object you need to create. But it will be one you can access using a IKernel*. Time for research now.

    Comment

    Working...