Very quickly:
I have a C++ program, it calls a dll that contains some external functions through a *.h & *.lib (meaning I don't have the source).
So, I want to add threading. So I use AfxBeginThread and try.
When my thread calls a certain function say "foo(ptr)". It returns a valid response, but the value of "ptr" is supposed to be changed -- its not.
But same code, simply called from the main-thread works -- ptr is the proper value.
Is there a reason why a thread wont work correctly with an external dll ?
Tags: