Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CProgressCtrl Default Bar Color Pin
Jack Puppy16-Jul-05 8:22
Jack Puppy16-Jul-05 8:22 
GeneralFlicker in TabControl Pin
Cyrus Dang15-Jul-05 13:17
Cyrus Dang15-Jul-05 13:17 
GeneralAdding and removing imagelist from CListCtrl Pin
Dale Fugier15-Jul-05 13:09
Dale Fugier15-Jul-05 13:09 
GeneralRe: Adding and removing imagelist from CListCtrl Pin
Alex_Y16-Jul-05 14:43
Alex_Y16-Jul-05 14:43 
GeneralRe: Adding and removing imagelist from CListCtrl Pin
Dale Fugier18-Jul-05 5:58
Dale Fugier18-Jul-05 5:58 
GeneralRe: Adding and removing imagelist from CListCtrl Pin
Alex_Y18-Jul-05 8:04
Alex_Y18-Jul-05 8:04 
GeneralAdd a CTreeCtrl to a CTabCtrl Pin
adonisv15-Jul-05 12:44
adonisv15-Jul-05 12:44 
GeneralAnother worker thread question Pin
Tom Wright15-Jul-05 9:35
Tom Wright15-Jul-05 9:35 
Would it be safer for me to create a class derived from CWinThread and call my thread function in it instead of having a function to call in my main app?

If I leave my thread function in my main app and I wrap a call to a data variable from my main app in a critical section will that still stop other threads from touching that data variable until I unlock it?


One other thing. I have a pointer to an ADO object. the pointer was created in my main app. Since I'm passing a pointer to my dlg class I'm able to pass this object pointer also, to my thread. Can multipule threads use the smae pointer with out using critical section?

m_pConnection->Execute(_bstr_t(mySelect), NULL, NULL);<br />


mySelect is local to the thread function. So in my htread function I would have something like
<br />
myDlg->m_pConnection->Execute(_bstr_t(mySelect), NULL, NULL);<br />


Would this work?

Thanks


Tom Wright
tawright915@yahoo.com
GeneralRe: Another worker thread question Pin
Blake Miller18-Jul-05 5:18
Blake Miller18-Jul-05 5:18 
GeneralDuplicateToken &amp; DuplicateTokenEx Pin
Blake Miller15-Jul-05 6:55
Blake Miller15-Jul-05 6:55 
GeneralRe: DuplicateToken &amp; DuplicateTokenEx Pin
Jose Lamas Rios15-Jul-05 7:51
Jose Lamas Rios15-Jul-05 7:51 
GeneralRe: DuplicateToken &amp; DuplicateTokenEx Pin
Blake Miller15-Jul-05 8:32
Blake Miller15-Jul-05 8:32 
GeneralRemove duplicates Pin
Andrew Admire15-Jul-05 6:38
Andrew Admire15-Jul-05 6:38 
GeneralRe: Remove duplicates Pin
Blake Miller15-Jul-05 6:51
Blake Miller15-Jul-05 6:51 
GeneralRe: Remove duplicates Pin
Andrew Admire15-Jul-05 6:59
Andrew Admire15-Jul-05 6:59 
GeneralRe: Remove duplicates Pin
Blake Miller15-Jul-05 7:09
Blake Miller15-Jul-05 7:09 
GeneralRe: Remove duplicates Pin
Andrew Admire15-Jul-05 7:27
Andrew Admire15-Jul-05 7:27 
GeneralRe: Remove duplicates Pin
Blake Miller15-Jul-05 7:34
Blake Miller15-Jul-05 7:34 
GeneralRe: Remove duplicates Pin
Jose Lamas Rios15-Jul-05 7:32
Jose Lamas Rios15-Jul-05 7:32 
GeneralRe: Remove duplicates Pin
Roland Pibinger15-Jul-05 8:55
Roland Pibinger15-Jul-05 8:55 
GeneralRe: Remove duplicates Pin
Michael Dunn15-Jul-05 10:19
sitebuilderMichael Dunn15-Jul-05 10:19 
GeneralDLL Pin
act_x15-Jul-05 6:16
act_x15-Jul-05 6:16 
GeneralRe: DLL Pin
Michael Dunn15-Jul-05 6:24
sitebuilderMichael Dunn15-Jul-05 6:24 
GeneralRe: DLL Pin
berndg15-Jul-05 7:01
berndg15-Jul-05 7:01 
GeneralRe: DLL Pin
AntonlioX15-Jul-05 19:50
AntonlioX15-Jul-05 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.