Do you want it to be in real time, just like a profiler? That would be hard to do. You will mostly recreate the profiler.
If this is not a requirement, I would recommend just calling the sp_trace_create stored procedures that you found to run the server-side trace, and then use the application to open the files created by this trace.
The easiest way to find out how this works is to start the SQL profiler, set all the necessary parameters, then click Run and immediately click Stop. Then go to File, Export, Script Definition of the trace and select the appropriate version.
This should give you a TSQL Script that combines all the correct fragments, including all trace events, columns, etc.
: SQLMag Profiler, "SQL Trace", SQL 7.0.