🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with thread

#13311
From: Ed Mulroy [TeamB]
Date: Mon, 20 Oct 2003 13:21
35 lines
1946 bytes
Start by getting rid of the individual windows header file includes and
doing this:

#include <windows.h>
#include <process.h>

No VCL or C++ dependency is introduced by them.

Also look at these functions in the help.  One of them should be used to
create the thread instead of the Windows API function CreateThread.  The
function prototypes are found in the header file process.h

_beginthread
_beginthreadNT
_beginthreadex

.  Ed

> Sebastian Gantzert wrote in message
> news:3f93c0f0@newsgroups.borland.com...
>
> Hi there. I want to use Win32 threads inside a .c-file
> (not c++) with c++builder 5. But I have got problems
> including the correct header-files for
> thread support. Tried several include-variants. E.g.
>
> #include "winbase.h" => does not know DWORD
> So I also include
>
> #include "wtypes.h" => does not know COAUTHINFO
> and so on...
>
> Could someone give me a sorted list of include-statements
> which enable the usage of thread-functionality without
> requiring vcl or c++ functionality?
Technical Details
Message-ID: <3f93e14b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f93c0f0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2a294cb798b24c2b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-20 06:39:38 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f93c0f0@newsgroups.borland.com>
Subject: Re: Problem with thread
Date: Mon, 20 Oct 2003 09:21:08 -0400
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3f93e14b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066656075 24.74.175.102 (20 Oct 2003 06:21:15 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail