см. мой код:
Код: Выделить всё
#include
#include
#include
#include
#define MIN 0
#define MAX 99999
using namespace std;
typedef struct _RANDOM_INFO{
DWORD random;
DWORD min;
DWORD max;
} RANDOM_INFO, * LPRANDOM_INFO;
void Error(LPSTR lpErrorMessage){
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/14728910/winapi-thread-pointer-error-with-custom-rand-function[/url]
Мобильная версия