Article View: borland.public.cppbuilder.nativeapi
Article #8943Re: Creating thread without TThread
From: Bob Gonder
Date: Thu, 19 Aug 2004 19:02
Date: Thu, 19 Aug 2004 19:02
13 lines
1429 bytes
1429 bytes
<zoom> wrote: >How to create threads in BCB without using TThread? See docs on CreateThread HANDLE threadHandle; DWORD threadid; threadHandle=CreateThread(NULL,0,ThreadProc,Param,CREATE_SUSPENDED,&threadid); ResumeThread(threadHandle); If you use 0 (zero) instead of CREATE_SUSPENDED, then you don't use ResumeThread because it's already running.
Technical Details
Message-ID:
<0qt9i0hbf6pscg6rfjmqs59rpmrf6sthd0@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4124b5f3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,847de4c1f1ea41b9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Creating thread without TThread Date: Thu, 19 Aug 2004 12:02:49 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <0qt9i0hbf6pscg6rfjmqs59rpmrf6sthd0@4ax.com> References: <4124b5f3@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 206.107.223.164 X-Trace: newsgroups.borland.com 1092942168 206.107.223.164 (19 Aug 2004 12:02:48 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail