[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.6

Can Visual C++ 2005 be compiled to run without dotnet?

Asked by GuruGary in C++ Programming Language

Tags: without, run, visual, dotnet, framework

I haven't written a Windows app that needed to be compiled in a few years.  I just write a quick, simple program (64k compiled .exe) in Visual C++ 2005 to replace a batch file that needed a little more functionality.  We keep this tool on our web site for customers to download to automate some steps.

In the past 3 days since this new version, 5 people have tried it, and it has failed for all 5 because none of them are running .NET 2.0.  I figured that we might run into a person every once in a while that didn't have .NET 2.0, but I seem to have over-estimated the general population of Windows users.  Actually, only 4 of the 5 got the message they needed .NET 2.0, and the 5th person got a runtime error that when researched told me that they don't have any version of .NET framework installed on their computer.  This program seems to be totally worthless with the .NET requirement.  I don't want to walk the users through downloading and installing a 22 MB .NET runtime so that our simple 64k program will run.

So, my question is: How can I work around this .NET 2.0 requirement?  Is there a way to compile the program so that it doesn't need the .NET framework?  I have heard there is a switch I can set in the project so it will compile in native code instead of MSIL code.  I have played around with the /clr (common Language Runtime support) switch in the project properties under Configuration Properties -> General.  This is the closest thing I can find.  When I set it to "no common language runtime support" the build fails with a bunch of errors.  The project builds fine and runs fine with the /clr switch (as long as .NET is installed).  Is there something else I need to do?  Can this be done at all?  Maybe even in another language?

Any ideas or suggestions to allow me to compile so that users don't have to have .NET installed are appreciated.
 
Related Solutions
Keywords: Can Visual C++ 2005 be compiled …
 
Loading Advertisement...
 
[+][-]09/14/07 09:06 AM, ID: 19892773Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/14/07 09:09 AM, ID: 19892799Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: C++ Programming Language
Tags: without, run, visual, dotnet, framework
Sign Up Now!
Solution Provided By: jkr
Participating Experts: 1
Solution Grade: A
 
[+][-]09/14/07 11:10 AM, ID: 19893821Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 / EE_QW_EXPERT_20070906