🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1876

Re: Main Thread ID

#1876
From: mauro
Date: Mon, 28 May 2007 23:24
37 lines
1980 bytes
Oh no, no problem.

I wrote "I need MainThreadID" to confirm you that it was the answer that I 
need :)

Moreover I knew already GetCurrentThreadId(), and this is because I looked 
for
a similar GetCurrentMainThreadId, but you told me it does not exists.
I justed want to write a condition to know id the current thread is the main 
thread
and now I will use
(GetCurrentThreadId() == MainThreadID)

Thanks again,
Mauro.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio 
news:465b4b6e$1@newsgroups.borland.com...
>
> "mauro" <m.russo@uniplan.it> wrote in message
> news:465a9d6b@newsgroups.borland.com...
>
>> Yes, I need MainThradID.
>
> So what's the problem then?  Like I said earlier, MainThreadID is a
> global variable that is defined by the VCL.  Simply use it as-is, for
> example:
>
>    #include <System.hpp>
>
>    ::PostThreadMessage(MainThreadID, WM_SOME_MSG, 0, 0);
>
>
> Gambit
>
> 
Technical Details
Message-ID: <465b64b7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46581ab4$1@newsgroups.borland.com> <4659d495@newsgroups.borland.com> <465a9d6b@newsgroups.borland.com> <465b4b6e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7babfd917db50fe4
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "mauro" <m.russo@uniplan.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46581ab4$1@newsgroups.borland.com> <4659d495@newsgroups.borland.com> <465a9d6b@newsgroups.borland.com> <465b4b6e$1@newsgroups.borland.com>
Subject: Re: Main Thread ID
Date: Tue, 29 May 2007 01:24:37 +0200
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 000745-1, 28/05/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 217.20.0.176
Message-ID: <465b64b7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1180394679 217.20.0.176 (28 May 2007 16:24:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail