C
Christian Stelte
Hi!
I've tried to write a CF-Program that would run also on the
Desktop-Framework. There are some things where I must use different code. Eg
to get the StartUpPath. As you told me to determinate the Plattform by using
'System.Environment.OSVersion.Platform'.
I've tried this:
if (System.Environment.OSVersion.Platform == PlatformID.WinCE)
StartupPath =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssem
bly().GetName().CodeBase);
else
StartupPath = Application.StartupPath;
This creates a 'System.Windows.Forms.Application' does not contain a
definition for 'StartupPath' Error-Message.
Clearly!
What must I do to get this? Compile with the Desktop-framework?
Chris
I've tried to write a CF-Program that would run also on the
Desktop-Framework. There are some things where I must use different code. Eg
to get the StartUpPath. As you told me to determinate the Plattform by using
'System.Environment.OSVersion.Platform'.
I've tried this:
if (System.Environment.OSVersion.Platform == PlatformID.WinCE)
StartupPath =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssem
bly().GetName().CodeBase);
else
StartupPath = Application.StartupPath;
This creates a 'System.Windows.Forms.Application' does not contain a
definition for 'StartupPath' Error-Message.
Clearly!
What must I do to get this? Compile with the Desktop-framework?
Chris