🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads, Functions and Classes

#8464
From: Remy Lebeau (TeamB)
Date: Tue, 26 Oct 2004 16:32
20 lines
1821 bytes
"Alistair" <Alistair@NoSpam.Sodoff> wrote in message
news:417e407c$1@newsgroups.borland.com...

> So what you are saying is that I have no way of including
> a function in my class that is passed to the WINAPI
> CreateThread method?

He is not saying that at all.  Please see my other reply, I give you an
actual example of doing what you are asking for.

> How would I have a function with a class that can be passed to the WINAPI
> CreateThread method??

You didn't read the CreateThread() documentation very carefully, did you?
In particular, the part about how the void* parameter works.  That is how
you pass class information from CreateThread() to your callback function.


Gambit
Technical Details
Message-ID: <417e7be9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <417e2ee6@newsgroups.borland.com> <417e3939@newsgroups.borland.com> <417e407c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fc124e2275bfd1e9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <417e2ee6@newsgroups.borland.com> <417e3939@newsgroups.borland.com> <417e407c$1@newsgroups.borland.com>
Subject: Re: Threads, Functions and Classes
Date: Tue, 26 Oct 2004 09:32:27 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <417e7be9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098808297 68.69.17.41 (26 Oct 2004 09:31:37 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail