Program Name on PocketPC

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good Morning!

Can anyone tell me how to go about getting the current Program Name for a WinCE App?? Win32 Apps pass the Program name as the first parameter to the "Main" method, sadly that is not the case for the compact framework.

Any suggestions??

Regards,
Ron
 
You could do something like this:

using System.IO;
using System.Reflection;

string appName =
Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().GetName().C
odeBase);

--
Tim Wilson
..Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}

Ron Jacobs said:
Good Morning!

Can anyone tell me how to go about getting the current Program Name for a
WinCE App?? Win32 Apps pass the Program name as the first parameter to the
"Main" method, sadly that is not the case for the compact framework.
 
Similarily - any idea on how to get executable version info from a cf.net
app? the code that uses reflection to query the assembly on a desktop .net
app results with unsupportedexception on cf.net.

thaks
Gadi
(e-mail address removed)
 
Back
Top