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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top