Domanda

This is part of my code in visual studio 2010. However I'm getting the "IntelliSense: identifier "GetTickCount" is undefined" from the compiler. I do not know how to fix it.

typedef enum {FALSE = 0, TRUE} BOOL;

int main(int argc, char* argv[]){
double current_Time;
current_Time = GetTickCount()/1000.0 - start/1000;
....

those are the includes I have in the code

 #include <stdio.h>
 #include <time.h>
 #include <math.h>
 #include <stdlib.h> 
 #include <conio.h>
È stato utile?

Soluzione

include widows.h file in header..

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top