[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

How to use Visual C++ without .NET


I am  building a large C++ project in Microsoft Studio and it has
intensive computing. I fear if I use .NET, it may get slow down
at runtime. So I am thinking of building it without .NET.
How can I do that?  I am using Windows XP and microsoft studio
2003 and 2005 beta.

Thanks a lot.

Jennifer Zhou
(Sorry I don't have a lot of points.)
1 Solution

Try this:

1.Open Visual C++ 2005, and start a new Project.

2.In the New Project Window, select Win32 and Console Application (Win32).
Complete the Bottom section normally.

3. In the Application Settings section of the Win32 Application Wizard, you will be able to select an Application Type (Windows App, Console App, Dll, or Static Library), add support for ATL and/or MFC, or select an empty project.

That *should* be all you need.

I hope this helps
We do this regularly in VS 2003 and it works fine.

I recommend putting the intensive computation in a DLL or COM library. Build that using just C++.  But use .NET for application UI.  It will save you a lot of time.

- Frank
If you use .Net the chance that you will be using a large number of already build components make your development time shorter which means your project is cheaper, you could ask the same amount of money but make more in time. Also you do not want to re-invent the wheel. Also the components in .Net are thoroughly tested, thus you will spend less time debugging and more time optimising.

If you code is well written your chances of having performance issues are less. E.g. using binary search is faster than linear search.

The last performance results I hear .Net was about 80% of the speed of native code.

Most applications spend 90% of the time in 5 - 10% of the actual code. I suggest that you rather make these parts native code if realy needed.
jfz2004Author Commented:
Thank you all so much. I will accept all your answers.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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