• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

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