// TEXE.CPP
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#include <e32std.h>
#include <e32uid.h>
#include <e32base.h>
#include <e32test.h>
#include <apadef.h>

const TInt KTexeUidValue=0x147;
const TUid KUidTExe={KTexeUidValue};

//
// Global functions
//


void DoThings(const TCommand& aCommandLine)
	{
	RTest test(_L("TEXE"));
	test.Title();
	test.Start(_L("The test dxe has been loaded."));
	test.Printf(_L("\n"));
	test.Printf(aCommandLine);
	test.Printf(_L("\n"));
	test.End();
	test.Close();
	}

//
// dll/exe bits
//

/*
#if defined(__WINS__)

EXPORT_C TInt EntryPoint(TAny* aParam)
	{
	__UHEAP_MARK;
    CTrapCleanup *cleanup=CTrapCleanup::New();
	//
	TCommand& docName=*(TCommand*)aParam;
    DoThings(docName);
	//
    delete(cleanup);
	__UHEAP_MARKEND;
    return(0);
	}


GLDEF_C TInt E32Dll(TDllReason)
	{
	return(KErrNone);
	}

#else
*/
GLDEF_C TInt E32Main()
	{
	__UHEAP_MARK;
    CTrapCleanup *cleanup=CTrapCleanup::New();
	//
    DoThings(RProcess().CommandLine());
	//
    delete(cleanup);
	__UHEAP_MARKEND;
    return(0);
	}

// #endif