Re: Methods and Threading

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Oops hit wrong key...

This link might help you:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcemfc/htm/cwinthrd.asp
http://www.codeproject.com/threads/extended_thread.asp

and of course Doug's FAQ is always a good read:

http://members.cox.net/doug_web/threads.htm

Tom

"FefeOxy" <jacksun007@xxxxxxxxx> wrote in message
news:1139947174.901993.51090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear Tom,

I am not sure if I understand what your new class does (what is
DECLARE_DYNAMIC. I read it but was confused).

My backgroundCalc function needs to access several private members such
as GPIBDevice1, 2, and the a static text member in the form (all of
which I've declared within the form). Therefore, using a static member
outside of the function is extremely undesirable. And my project being
of a managed type, I can't use friend to resolve this problem so
basically I'll need to have a bunch of delegates getting info from the
GPIBDevices and updating them in the form, that seems extremely
inefficient and long-winded.

Maybe it's time I re-structure the code.....



.



Relevant Pages

  • Re: Methods and Threading
    ... My backgroundCalc function needs to access several private members such ... as GPIBDevice1, 2, and the a static text member in the form (all of ... Therefore, using a static member ...
    (microsoft.public.vc.mfc)
  • Re: EnumChildWindows and C++
    ... I have a good stack of reading material now. ... Generally a *public* static member function can be used ... > whereever a C-style non-member function can be used. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Creating thread from a class object
    ... and non-static member functions and data of any instance of the ... forth having that type and use all the private members. ... << o) using only the public interface, the fact is that static member ...
    (microsoft.public.vc.language)
  • Re: Microsoft Data Access Block and static methods
    ... "If User A calls my web service at the same time User B calls it, ... "I would figure it to be completely opposite - that if multiple threads ... returned to the wrong user, whereas in an instance member, each method ... not, I am), before writing or accessing a static member. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Whats wrong withthe code?
    ... Rob Williscroft wrote: ... >>Can you really have a static member that is the same type as the class ... but seems strange to me. ...
    (comp.lang.cpp)