G
GERM
Hi,
Is it in dotNet possible to give a starting Thread a value on
startup??
Thread* connecttoserver = new Thread(new ThreadStart(0,
ConnectToServer));
connecttoserver->Start();
...
static void ConnectToServer(){}
^^that works fine,
but when i try to give a value to ConnectToServer it come an error
[code:1:762980b63d]
int i = 0;
Thread* connecttoserver = new Thread(new ThreadStart(0,
ConnectToServer(i)));
connecttoserver->Start();
...
static void ConnectToServer(int access){}
[/code:1:762980b63d]
thx for help
PS: i know, i can no english
Is it in dotNet possible to give a starting Thread a value on
startup??
Thread* connecttoserver = new Thread(new ThreadStart(0,
ConnectToServer));
connecttoserver->Start();
...
static void ConnectToServer(){}
^^that works fine,
but when i try to give a value to ConnectToServer it come an error
[code:1:762980b63d]
int i = 0;
Thread* connecttoserver = new Thread(new ThreadStart(0,
ConnectToServer(i)));
connecttoserver->Start();
...
static void ConnectToServer(int access){}
[/code:1:762980b63d]
thx for help
PS: i know, i can no english