Click here to Skip to main content
15,914,419 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionCEdit Phone number Pin
DanYELL9-Jul-09 10:00
DanYELL9-Jul-09 10:00 
AnswerRe: CEdit Phone number Pin
teejayem14-Jul-09 7:17
teejayem14-Jul-09 7:17 
QuestionDeclaring variables as 'new' in C++ CLR - Heap or GCHeap? Pin
Will58019-Jul-09 5:31
Will58019-Jul-09 5:31 
AnswerRe: Declaring variables as 'new' in C++ CLR - Heap or GCHeap? Pin
Mark Salsbery9-Jul-09 6:49
Mark Salsbery9-Jul-09 6:49 
QuestionCLR C++ Q. Does BYTE b[10] create a ref class System.Array? Pin
Will58019-Jul-09 3:15
Will58019-Jul-09 3:15 
AnswerRe: CLR C++ Q. Does BYTE b[10] create a ref class System.Array? Pin
Mark Salsbery9-Jul-09 6:50
Mark Salsbery9-Jul-09 6:50 
GeneralRe: CLR C++ Q. Does BYTE b[10] create a ref class System.Array? Pin
ant-damage2-Sep-09 1:04
ant-damage2-Sep-09 1:04 
QuestionThreading issue Pin
bubuzzz6-Jul-09 22:12
bubuzzz6-Jul-09 22:12 
Hi all,

Recently, I am trying openCV to detect the face. All the methods work well. Now I want to compare all the methods at the same time, that means i have to use multi thread to archieve this purpose. Here is my code

In my form (Form1.h), i declared :

private: System::Threading::Thread^ trd;


and initialized the thread:

trd = gcnew Thread( gcnew ThreadStart( this->compareAlg));


and this is the compareAlg function:
private: static System::Void compareAlg ()
		 {
			 SCM *objSCM = new SCM ();
			 VAJ *objVAJ = new VAJ();
			// MHI *objMHI = new MHI();
			 
			 objVAJ ->showFaceDetect_Cam("Resource\\face.xml");
			 objSCM ->showFace_SkinDetect_Cam();
			 Thread::Sleep (0);
			 //objMHI ->showFace_MHI ();
		 }


i also used a button to start the thread:

private: System::Void btnCompare_Click(System::Object^  sender, System::EventArgs^  e) {
			 trd->Start ();
		 }


The code compile well but the methods (showFaceDetect_Cam and showFace_SkinDetect) run sequently. What i want is the output of these methods appear at the same time on the screen. Can you suggest some advices, please? The thread code is found from http://msdn.microsoft.com/en-us/library/system.threading.thread.aspx

Thanks
AnswerRe: Threading issue Pin
Mark Salsbery7-Jul-09 7:21
Mark Salsbery7-Jul-09 7:21 
GeneralRe: Threading issue Pin
bubuzzz7-Jul-09 21:16
bubuzzz7-Jul-09 21:16 
Questionturning off command line Pin
parth_patel2-Jul-09 6:18
parth_patel2-Jul-09 6:18 
AnswerRe: turning off command line Pin
parth_patel2-Jul-09 6:19
parth_patel2-Jul-09 6:19 
AnswerRe: turning off command line Pin
parth_patel2-Jul-09 6:40
parth_patel2-Jul-09 6:40 
AnswerRe: turning off command line Pin
Mark Salsbery2-Jul-09 12:19
Mark Salsbery2-Jul-09 12:19 
GeneralRe: turning off command line Pin
parth_patel4-Jul-09 6:07
parth_patel4-Jul-09 6:07 
GeneralRe: turning off command line Pin
teejayem5-Jul-09 4:23
teejayem5-Jul-09 4:23 
QuestionUsing MemoryStream() in c++ program Pin
MrKBA2-Jul-09 3:40
MrKBA2-Jul-09 3:40 
AnswerRe: Using MemoryStream() in c++ program Pin
led mike2-Jul-09 4:25
led mike2-Jul-09 4:25 
GeneralRe: Using MemoryStream() in c++ program Pin
MrKBA3-Jul-09 0:10
MrKBA3-Jul-09 0:10 
GeneralRe: Using MemoryStream() in c++ program Pin
Member 18414221-Oct-10 1:36
Member 18414221-Oct-10 1:36 
AnswerRe: Using MemoryStream() in c++ program Pin
parth_patel2-Jul-09 6:14
parth_patel2-Jul-09 6:14 
GeneralRe: Using MemoryStream() in c++ program [modified] Pin
mikobi20-Aug-09 3:05
mikobi20-Aug-09 3:05 
QuestionC#, C++/CLI and Visual Studio 2008 Pin
Shadowsoal30-Jun-09 8:08
Shadowsoal30-Jun-09 8:08 
AnswerRe: C#, C++/CLI and Visual Studio 2008 Pin
N a v a n e e t h30-Jun-09 20:44
N a v a n e e t h30-Jun-09 20:44 
GeneralRe: C#, C++/CLI and Visual Studio 2008 Pin
Shadowsoal1-Jul-09 0:31
Shadowsoal1-Jul-09 0:31 

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.