Article View: borland.public.cppbuilder.nativeapi
Article #4694Passing Class Functions To CreateThread, etc...
From: Alistair
Date: Sun, 04 Dec 2005 12:01
Date: Sun, 04 Dec 2005 12:01
21 lines
1707 bytes
1707 bytes
Me : "I can't pass the pointer of a class function to CreateThread" Gambit : "Well, technically you can, but not easily. You would essentially have to use a proxy function in order to do it. Using a static method is easier, though, especially since CreateThread() allows a user-defined value to be passed to the thread instance. That makes a proxy function unnecessary." You got me thinking Gambit, how would you create a proxy function to make a call back of type 'void Do()' take a 'void myclass::Do()'? Purely on a interest basis, I am not planning to do it at the moment. I have looked on yahoo and google for this and I can't find anything useful. Can you expand on what you mean Gambit or can someone else shed some light on this? Cheers, Alistair
Technical Details
Message-ID:
<4392dfb4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9984129712b6d0f1,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 04 Dec 2005 12:01:04 +0000 From: Alistair <NoSpamPlease@Somewhere.Com> User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Passing Class Functions To CreateThread, etc... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.9.170.38 Message-ID: <4392dfb4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133698996 84.9.170.38 (4 Dec 2005 04:23:16 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail