Re: [python-win32] Getting new thread's ID (not handle)

2005-08-01 Thread Mark Hammond
GetThreadID is a member of an MFC CThread class, probably not what you want.  The thread itself can call GetCurrentlThreadId - so the simplest way is probably for your new thread to call this function and store the result in a global.  Your main thread can then use this global.   The only ot

Re: [python-win32] Getting new thread's ID (not handle)

2005-08-01 Thread Justin Johnson
I see GetCurrentThreadId there, but not GetThreadId. On 8/1/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: It is in the win32api module.-- jvIt looks like GetThreadId is what I need, but I can't find that in any of the win32* modules.  I do see CreateThread in CVS in Pythonwin/win32thread.cpp, b

Re: [python-win32] Getting new thread's ID (not handle)

2005-08-01 Thread Jim . Vickroy
It is in the win32api module. -- jv It looks like GetThreadId is what I need, but I can't find that in any of the win32* modules.  I do see CreateThread in CVS in Pythonwin/win32thread.cpp, but I don't have a win32thread in my installation. On 8/1/05, Justin Johnson <[EMAIL PROTECTED]> wrote: MSD

Re: [python-win32] Getting new thread's ID (not handle)

2005-08-01 Thread Justin Johnson
It looks like GetThreadId is what I need, but I can't find that in any of the win32* modules.  I do see CreateThread in CVS in Pythonwin/win32thread.cpp, but I don't have a win32thread in my installation. On 8/1/05, Justin Johnson <[EMAIL PROTECTED]> wrote: MSDN says PostThreadMessage takes the th

[python-win32] Getting new thread's ID (not handle)

2005-08-01 Thread Justin Johnson
MSDN says PostThreadMessage takes the thread ID as a parameter.  >From reading the doc I see that handle and ID are different and that both should be returned when creating a new thread with CreateThread.  I am creating a new thread with the threading module and do not see a way to get the ID back.

[python-win32] Invoking InchesToPoints

2005-08-01 Thread kimwaic888-pythonwin32
Hello list, Does anybody know how I can invoke the Word InchesToPoints function from Python using PythonWin32? Thanks, -- John Henry ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32