Hi ! If void ConEmRecog::MainWindow::extractVoice is a custom function I highly recommend using std::string or the like as parameters since this is c++ ;)
This is not the right forum to post your C++/CLI and .NET questions, try windows forum, or even better, @MSDN forums, as here almost nobody uses that language.