|
-
June 14th, 2012, 03:38 AM
#1
[RESOLVED] How to pass character arrays as parameters to a Thread^
Hi,
I'm using C++ and I want to start a thread calling a function (extractVoice) that has char* as two parameters. Below is my code:
Thread^ extractVoiceThread = gcnew Thread(gcnew ParameterizedThreadStart(this, &MainWindow::extractVoice));
extractVoiceThread->Start(filepathV, file);
void ConEmRecog::MainWindow::extractVoice(char* filepath, char* filename){
}
However, the parameter can only one and of type System ^ Object. In my case I need to pass two character arrays. Any ideas how this can be done?
Thank you very much!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|