Click here to Skip to main content
15,883,458 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Chris Losinger14-Apr-09 5:40
professionalChris Losinger14-Apr-09 5:40 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Iain Clarke, Warrior Programmer14-Apr-09 5:30
Iain Clarke, Warrior Programmer14-Apr-09 5:30 
GeneralRe: C# / C++ Interop, Odd behaviour from marshalled strings Pin
Mikey_H14-Apr-09 6:34
Mikey_H14-Apr-09 6:34 
QuestionHaving a generic function GetProcAddress for both unicode and ascii builds - fails in release mode Pin
Priya_Sundar14-Apr-09 3:43
Priya_Sundar14-Apr-09 3:43 
AnswerRe: Having a generic function GetProcAddress for both unicode and ascii builds - fails in release mode Pin
Iain Clarke, Warrior Programmer14-Apr-09 4:07
Iain Clarke, Warrior Programmer14-Apr-09 4:07 
AnswerRe: Having a generic function GetProcAddress for both unicode and ascii builds - fails in release mode Pin
CPallini14-Apr-09 5:47
mveCPallini14-Apr-09 5:47 
GeneralRe: Having a generic function GetProcAddress for both unicode and ascii builds - fails in release mode Pin
Priya_Sundar14-Apr-09 17:12
Priya_Sundar14-Apr-09 17:12 
Questionhow to create new thread Pin
hemlat14-Apr-09 3:39
hemlat14-Apr-09 3:39 
Hi,
I need to create new thread if I click on particular button in my MFC application.I have added following code.
AfxBeginThread( CRuntimeClass* pfnThreadProc,LPVOID pParam, 
		int nPriority = THREAD_PRIORITY_NORMAL,UINT nStackSize = 0, 
		DWORD dwCreateFlags = 0,LPSECURITY_ATTRIBUTES lpSecurityAttrs = NULL);
UINT CTestcycleDlg::pfnThreadProc(LPVOID pParam )
{
}


I am getting errors one of thoes error is

error C2275: 'CRuntimeClass' : illegal use of this type as an expression <br />

I have created user interface thread.Is it correct.Where I need to close thread and how to close
AnswerRe: how to create new thread Pin
Divyang Mithaiwala14-Apr-09 3:53
Divyang Mithaiwala14-Apr-09 3:53 
GeneralRe: how to create new thread Pin
hemlat14-Apr-09 4:01
hemlat14-Apr-09 4:01 
GeneralRe: how to create new thread Pin
Divyang Mithaiwala14-Apr-09 4:04
Divyang Mithaiwala14-Apr-09 4:04 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 4:11
professionalRajesh R Subramanian14-Apr-09 4:11 
GeneralRe: how to create new thread Pin
ThatsAlok14-Apr-09 20:20
ThatsAlok14-Apr-09 20:20 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 4:17
professionalRajesh R Subramanian14-Apr-09 4:17 
AnswerRe: how to create new thread Pin
Divyang Mithaiwala14-Apr-09 4:02
Divyang Mithaiwala14-Apr-09 4:02 
AnswerRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 4:19
professionalRajesh R Subramanian14-Apr-09 4:19 
QuestionRe: how to create new thread Pin
David Crow14-Apr-09 4:37
David Crow14-Apr-09 4:37 
AnswerRe: how to create new thread Pin
hemlat14-Apr-09 20:34
hemlat14-Apr-09 20:34 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 20:39
professionalRajesh R Subramanian14-Apr-09 20:39 
GeneralRe: how to create new thread Pin
hemlat14-Apr-09 21:01
hemlat14-Apr-09 21:01 
GeneralRe: how to create new thread Pin
hemlat14-Apr-09 22:03
hemlat14-Apr-09 22:03 
GeneralRe: how to create new thread Pin
Rajesh R Subramanian14-Apr-09 23:28
professionalRajesh R Subramanian14-Apr-09 23:28 
GeneralRe: how to create new thread Pin
hemlat15-Apr-09 20:41
hemlat15-Apr-09 20:41 
GeneralRe: how to create new thread Pin
David Crow15-Apr-09 2:47
David Crow15-Apr-09 2:47 
AnswerRe: how to create new thread Pin
ThatsAlok14-Apr-09 20:19
ThatsAlok14-Apr-09 20:19 

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.