Click to See Complete Forum and Search --> : Strings stored in the resource is not found from the thread


rrapheall
May 25th, 2006, 09:55 AM
Dear all,
My application have a thread. When I started the thread with afxBeginThread, I was able to use string in the string table of my resource. But when I changed AfxBeginThread to CreateThread I am not getting the string. All i got is only null strings. This is the first time I used CreateThread Please help me in this regard.

Andreas Masur
May 25th, 2006, 10:38 AM
Well...why did you change that in the first place to 'CreateThread()'? While using MFC you are usually safer by using 'AfxBeginThread()' since it does some initialiations in regard to the MFC which are skipped by using 'CreateThread()'...

Andreas Masur
May 25th, 2006, 10:39 AM
[ Redirected thread ]

rrapheall
May 25th, 2006, 11:15 AM
I was just trying to understand what is the difference between AfxBeginthread and createThread.