#using <mscorlib.dll>
using namespace System;
using namespace IVRForBeginners;
namespace HelloWorld_CPPCLI
{
public ref class HelloWorld : public NetClientCall
{
public:
void Answer()
{
Synthesizer^ syn;
playMessage("helloworld");
waitIfPlaying();
syn = getSynthesizer();
syn->speak("Please press key on your telephone's keypad.");
inputWait(1, '#', 10000);
syn->speak("You pressed ...");
if ( inputAvailable() > 0 )
syn->speak( getChar().ToString() );
else
syn->speak("nothing");
syn->speak("That was easy, wasn't it?");
syn->wait();
}
};
}