Re: COM Object (singleton) in an ATL Service




"John" <John@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:88617A86-05B9-4EAF-A5F4-1C70D2413F26@xxxxxxxxxxxxxxxx
Brian,

Thanks for the input and in effect that is what I've done. I have created
a
global
class that interacts with the hardware, then when the client creates an
object
it acts as a wrapper and forwards the calls to the global class. I was
just
wondering if there was a "cleaner" approach.


This is pretty clean, IMHO. Remember that you probably will need to
synchronize access to the global data, so that one client doesn't
inadvertently change the values at the same time another client reads the
values (leading to garbage). This implies using perhaps critical sections or
semaphores.

Brian


.



Relevant Pages

  • Re: Cobol work?
    ... >> deployment a month....I thought the same thing of his statement as I did ... hardware systems, not one single point of failure (that is redundant ... > meeting kicking off a Y2K project at another client that day. ... >> I also believe that the hardest bugs to find are the ones that create ...
    (comp.lang.cobol)
  • Re: XP Deployment question
    ... I've just started a new contract working on an XP rollout for a client. ... upgrade easier as there is a common platform. ... hardware refresh is not an option. ...
    (microsoft.public.windowsxp.general)
  • Re: Firewalls
    ... the separate Exchange box. ... My client just wanted to be able to explain it to ... done a comparison between that and a hardware device. ... If you want to provide strong two-factor remote authentication with SBS, ...
    (microsoft.public.windows.server.sbs)
  • Re: hardware detection and the registry (complicated)
    ... A professional always allows a customer to discontinue ... workaround,) and my recommendations if they differ from what the client ... already that I have had this talk with my client and that my recommendations ... you'll realize that the same client could have been sold hardware ...
    (microsoft.public.windowsxp.general)
  • Re: hardware detection and the registry (complicated)
    ... your client aware of this fact. ... A professional always allows a customer to discontinue ... > workaround,) and my recommendations if they differ from what the client ... > and sold them some hardware. ...
    (microsoft.public.windowsxp.general)