Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog Help! Pin
Ivan Cachicatari27-Jul-04 4:06
Ivan Cachicatari27-Jul-04 4:06 
GeneralRe: CDialog Help! Pin
David Crow27-Jul-04 4:06
David Crow27-Jul-04 4:06 
GeneralRe: CDialog Help! Pin
Pazzuzu27-Jul-04 4:22
Pazzuzu27-Jul-04 4:22 
GeneralRe: CDialog Help! Pin
Pazzuzu27-Jul-04 5:11
Pazzuzu27-Jul-04 5:11 
GeneralRe: CDialog Help! Pin
David Crow27-Jul-04 7:53
David Crow27-Jul-04 7:53 
GeneralRe: CDialog Help! Pin
Pazzuzu28-Jul-04 4:20
Pazzuzu28-Jul-04 4:20 
GeneralRe: CDialog Help! Pin
Jaime Stuardo27-Jul-04 5:09
Jaime Stuardo27-Jul-04 5:09 
QuestionAre parameters/member variables safe for threading ? Pin
Hesham Amin27-Jul-04 0:39
Hesham Amin27-Jul-04 0:39 
Hi i make 1 instance of CMyClass in the ThreadProc function and call Init member function :
int CMyClass::Init(int ID)<br />
{<br />
	m_ChID=ID;<br />
	int res=pInitChannel(m_ChID);<br />
<br />
	if(0==res)<br />
		return true;<br />
	else<br />
	{<br />
		ReportError(res);<br />
		return false;<br />
	}<br />
}

I know (and correct me if wrong) that the ID parameter and m_ChID are safe.
I mean that if i pass 0 from a thread and 1 from another then there is no chance that m_ChID member will have the same value 0 or 1 for both instances since m_ChID is not a shared variable..

the problem that arises that the library i call (which have the global pInitChannel function) should be thread safe but i get an error that indicates that I pass the same ID more than once (which is not allowed).

now the question is :
Am I wrong with my concepts or does the library i use have problems with multithreading ?

thank you for reading
QuestionHow to add a message handler function to a control at run-time? Pin
misterbear26-Jul-04 21:48
misterbear26-Jul-04 21:48 
AnswerRe: How to add a message handler function to a control at run-time? Pin
Ivan Cachicatari27-Jul-04 4:01
Ivan Cachicatari27-Jul-04 4:01 
GeneralSystem modal window question... Pin
Orkun GEDiK26-Jul-04 21:19
Orkun GEDiK26-Jul-04 21:19 
GeneralRe: System modal window question... Pin
David Crow27-Jul-04 4:10
David Crow27-Jul-04 4:10 
GeneralGlobal Variable..(Simple but difficult....) Pin
Sumit Kapoor26-Jul-04 19:01
Sumit Kapoor26-Jul-04 19:01 
GeneralRe: Global Variable..(Simple but difficult....) Pin
V.26-Jul-04 22:52
professionalV.26-Jul-04 22:52 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Ryan Binns27-Jul-04 19:01
Ryan Binns27-Jul-04 19:01 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Sumit Kapoor27-Jul-04 19:22
Sumit Kapoor27-Jul-04 19:22 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Ryan Binns27-Jul-04 20:44
Ryan Binns27-Jul-04 20:44 
GeneralTreeview in SDI App - Explorer style Pin
mavrick2326-Jul-04 18:47
mavrick2326-Jul-04 18:47 
GeneralRe: Treeview in SDI App - Explorer style Pin
User 58385226-Jul-04 18:58
User 58385226-Jul-04 18:58 
GeneralRe: Treeview in SDI App - Explorer style Pin
mavrick2326-Jul-04 20:35
mavrick2326-Jul-04 20:35 
GeneralRe: Treeview in SDI App - Explorer style Pin
User 58385226-Jul-04 21:01
User 58385226-Jul-04 21:01 
GeneralRe: Treeview in SDI App - Explorer style Pin
palbano26-Jul-04 19:55
palbano26-Jul-04 19:55 
Generalstatus bar Pin
Anonymous26-Jul-04 18:42
Anonymous26-Jul-04 18:42 
GeneralRe: status bar Pin
User 58385226-Jul-04 19:28
User 58385226-Jul-04 19:28 
Questionhow to call SQL BLOB in MFC Pin
Member 118298226-Jul-04 16:52
Member 118298226-Jul-04 16:52 

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.