Re: Help with threads in a win32 service



Hi Jim,

Thanks for your response. I did a bit of reading about the volatile
keyword and it sounds like it might do the trick.

However now that I've changed the declaration of szPinNumber I get
compiler errors "'MessageBoxA' : cannot convert parameter 2 from
'volatile char *' to 'LPCSTR'
Conversion loses qualifiers"

What do I need to do in order to use szPinNumber now that the compiler
considers it volatile?

.



Relevant Pages

  • Re: Update custom formulas automatically
    ... This means a recalculation needs to be forced ... (and volatile should be set) ... The button trick should work, ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: synchronized Boolean
    ... Remon van Vliet wrote: ... trick by encapsulating a boolean flag declared as... ...
    (comp.lang.java.programmer)
  • Re: Help with threads in a win32 service
    ... considers it volatile? ... Type cast. ... MessageBox(NULL, (const char *)szPinNumber, NULL, MB_OK); ...
    (comp.programming.threads)