FILETIME ft;
GetSystemTimeAsFileTime(&ft);
static DWORD dwVal = 0x21;
DWORD dwSeed = (dwVal++ << 0x18) | (ft.dwLowDateTime & 0x00ffff00) | dwVal++ & 0x000000ff;
srand(dwSeed);
int iRandom = rand()%10+1;
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
static DWORD dwVal = 0x21;
DWORD dwSeed = (dwVal++ << 0x18) | (ft.dwLowDateTime & 0x00ffff00) | dwVal++ & 0x000000ff;
srand(dwSeed);
int iRandom = rand()%10+1;
BSTR -> char 배열
USES_CONVERSION;
strcpy(szData,OLE2A(decodeData));
char 배열 -> BSTR
USES_CONVERSION;
char* szData = "char array";
BSTR sbstr;
sbstr = SysAllocString(A2W(szData));
