Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread variables
#1
Would Function contain value of T here.
Test :int hwnd=val(_command);int- T=(GetToolbarOwner(hwnd));mac "Function" * $QM$\file.ico
or would need to be
Test :int hwnd=val(_command);int- T=(GetToolbarOwner(hwnd));Function * $QM$\file.ico
or not posible?
#2
In example 1, Function cannot use T, because mac creates new thread.
In example 2, Function can use T, but need to declare it there: int- T.

In both cases, it is better to pass the value as an argument, not as a thread variable. In example 2 you can even place val(_command) etc in Function, because it can use _command, because it is a thread variable.
#3
so
Toolbar
Test :int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));Function(T) * $QM$\file.ico

Function
function# T

is this how you mean
#4
Yes.

Or:

Toolbar
Test :Function * $QM$\file.ico

Function
int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));

Or:

Toolbar
Test :int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));mac "Function" "" T * $QM$\file.ico

Function
function# T

Or:

Toolbar
Test :mac "Function" _command * $QM$\file.ico

Function
int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));
#5
cheers gint first one works fine


Forum Jump:


Users browsing this thread: 1 Guest(s)