converting a program from unix to windows
hello,
i'm wondering if anybody out there could point me to a tutorial or FAQ on porting a unix C program to windows?
specifically, i'm getting an error when i compile with the following functions defined:
Code:
srand( (unsigned)time( (time_t *) 0 ));
to seed srand. the error is:
'time': identifier not found, even with argument-dependent lookup
also,
Code:
mkdir(theFolder, 00777);
with the same error code. it may be my headers are incorrect, so i'll list them too:
#include <iostream>
#include <tchar.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
any help or advice would be appreciated. i'm using visual studio to compile.