delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/19/11:23:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 19 Jan 2005 08:17:28 -0800 (PST)
From: Kaz Kylheku <kaz AT ashi DOT footprints DOT net>
To: Kukuk Barbara <barbara DOT kukuk AT siemens DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: _beginthreadex
In-Reply-To: <AB3A7F43BF185E49A97510ACDA996AC8023DCF8B@fthw341a.fthw.siemens.de>
Message-ID: <Pine.LNX.4.44.0501190810470.510-100000@ashi.FootPrints.net>
MIME-Version: 1.0

On Wed, 19 Jan 2005, Kukuk Barbara wrote:

> Hi,
> I would like to know how I can use _beginthreadex in my program.
> It is shown as an unresolved external. Do I have to link a special
> library?

This function is not a Win32 API, but a function in Microsoft Visual
Studio's C library.

Unlike UNIX-like systems, Windows does not have the equivalent of a C
library for providing run-time support to C programs (malloc, printf,
etc). C programming environments targetting Windows have to provide
their own.

_beginthreadex is a wrapper for CreateThread which routes the thread
through a startup function within the C library, where it can
initialize some thread-local storage specific to that library and
whatnot.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019