B
bill
All,
I have a WindowsForm app and am happily getting data from my DLL which
is on a different thread than my UI. I have now arrived at the
situation where I need to lock the data that is being communicated.
Unhappily, again, I can find no examples using C++ to lock threads in
a .NET Windows Form application. All of the examples are in either C#
or VB. The namespace that works for C#:
using namespace System::Threading;
does not support the "CSingleLock singleLock(&m_CritSection);" that is
shown in some examples. And, it does not also support the "lock(this);"
shown in other examples. How is thread locking done with C++ in a
Windows form app?
TIA
Bill
I have a WindowsForm app and am happily getting data from my DLL which
is on a different thread than my UI. I have now arrived at the
situation where I need to lock the data that is being communicated.
Unhappily, again, I can find no examples using C++ to lock threads in
a .NET Windows Form application. All of the examples are in either C#
or VB. The namespace that works for C#:
using namespace System::Threading;
does not support the "CSingleLock singleLock(&m_CritSection);" that is
shown in some examples. And, it does not also support the "lock(this);"
shown in other examples. How is thread locking done with C++ in a
Windows form app?
TIA
Bill