• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

.net 1.1 and CE

I have visual studio 2003 and .net 1.1 SP1 installed and when I try to use the below code it is reporting:

Type 'System.Diagnostics.Process' is not defined

This works for me in visual studio 2008 with .net 3.5. Why can I not use it in .net 1.1 I have googled this and checked on M$ about this and it reports that I can use the System.Diagnostics namespace.


Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process
            myProcess.StartInfo.FileName = "\hard disk\ocius\ocius_cf.exe"
            myProcess.Start()

Open in new window

0
richard_gar
Asked:
richard_gar
  • 2
1 Solution
 
CodeCruiserCommented:
You mentioned CE in the title of the question! Is it a Windows CE project? If so, the Compact Framework is a subset of the framework and does not include all the namespaces.
0
 
richard_garAuthor Commented:
Yes it is a Windows CE program and I am using VS2003 with CF Framework 1.1.

If I cannot use the system.diagnostics.process then how in .NET CF 1.1 can I launch an external program?

Thank You
0
 
CodeCruiserCommented:
This namespace is not supported in compact framework 1.1 but is supported in 2.0 and 3.5.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now