#include <iostream>
#include <cstdlib>
#include "SysPlusPlus"
#include "ComPlusPlus"


#include <string>

int main (int argc, char *argv [] ) {
try {	

  compp::Launch *C1 = new compp::Launch ( "./ExampleThread" ) ;

  for ( int i = 0; i < 20; ++i ) {
    syspp::Call::Sleep(1);
    std::cout << "**Parent \n";
  }
  delete C1;

} catch ( syspp::ComException e ) {
	std::cout <<  "Exception " << e.what() << "\n" ;	
}
 return 0;	
}
