stif/TestServerStarter/src/TestServerStarter.cpp
changeset 17 67c6ff54ec25
parent 13 33016869e0dd
equal deleted inserted replaced
15:ccab7f1f8266 17:67c6ff54ec25
    51     {
    51     {
    52 
    52 
    53     RDebug::Print(_L("STIF: New process starting"));
    53     RDebug::Print(_L("STIF: New process starting"));
    54 
    54 
    55     // Get module name from command line
    55     // Get module name from command line
    56 	const TInt length = User().CommandLineLength();
    56 	const TInt length = User::CommandLineLength();
    57 
    57 
    58     HBufC* cmdLine = HBufC::New( length );
    58     HBufC* cmdLine = HBufC::New( length );
    59     
    59     
    60     if ( cmdLine == NULL )
    60     if ( cmdLine == NULL )
    61         {
    61         {
    62         return KErrNoMemory;
    62         return KErrNoMemory;
    63         }
    63         }
    64 
    64 
    65     TPtr moduleName = cmdLine->Des();
    65     TPtr moduleName = cmdLine->Des();
    66 
    66 
    67 	User().CommandLine( moduleName );
    67 	User::CommandLine( moduleName );
    68 
    68 
    69     RDebug::Print(_L("STIF: Received data [%S]"), &moduleName);
    69     RDebug::Print(_L("STIF: Received data [%S]"), &moduleName);
    70 
    70 
    71     // Extract semaphore name passed in data
    71     // Extract semaphore name passed in data
    72     TInt index = moduleName.Find(_L(" "));
    72     TInt index = moduleName.Find(_L(" "));