Re: AfxBeginThread question

Tech-Archive recommends: Fix windows errors by optimizing your registry




On Tue, 08 Jan 2008 19:31:12 -0500, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

UINT AddFilesHdThread(LPVOID pParameter)
****
More commonly this should be a static member of your class rather than a global function
****

yup, that simplifies things greatly.

With that and the examples here

http://www.flounder.com/workerthreads.htm

this does become fairly simple. Thanks very much.

***

I'm sorry if the questions I'm asking are irritating to people on the
board, I've been programming for a long time but I am completely new
to MFC and building applications under Windows, so I am just trying to
work my questions through logically the best I can. I apologize if I
am coming off as combative or something.

--
Joe Cosby
http://joecosby.com/
We like our solutions fast and stupid.
~ Bill Maher

:: Currently listening to Contrapunctus 12, a 4. Rectus, 1749, by Bach, from "Art of Fugue BWV 1080 - Goebel"
.



Relevant Pages

  • Re: copy constructor clarification
    ... operator= cannot be a static member as you show below. ... The first parameter is implied. ... >> because of language interoperability problems but rather as what? ... They are similar to global function ISO C++ operator overloading. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Two questions - thanks!
    ... One quite elegant solution, if it makes sense, is to inherit ... > for it to access static member variables? ... You can also create static member functions that, ... Instead of making a global function that lives in ...
    (comp.lang.cpp)
  • Re: Creating thread from a class object
    ... than having a global function in the first place. ... the class to the thread function when you create the thread. ... A static member function has access to the non-public members ...
    (microsoft.public.vc.language)