473,469 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VS6 code compiled w VS2005 needs .NET framework?

I'm told that when an VC++ 6 project is copied and compiled with the
VS2005 compiler, that the runtime requires the .NET framework. I
don't have any machines handy that *don't* have the framework
installed so I can't confirm this.

Any idea why that would be or how to compile so .NET is not required?

Nov 17 '05 #1
6 1140
"-DG-" <-D**@nospam.com> wrote in message
news:6s********************************@4ax.com...
I'm told that when an VC++ 6 project is copied and compiled with the
VS2005 compiler, that the runtime requires the .NET framework. I
don't have any machines handy that *don't* have the framework
installed so I can't confirm this.

Any idea why that would be or how to compile so .NET is not required?


Whoever told you that was sorely misinformed. Code compiled with VC++ 2005
(or 2003 or 2002) only requires the .NET framework if you choose to make it
require the .NET framework.

-cd
Nov 17 '05 #2
On Mon, 17 Oct 2005 15:44:13 -0700, "Carl Daniel [VC++ MVP]"
<cp*****************************@mvps.org.nospam > wrote:
"-DG-" <-D**@nospam.com> wrote in message
I'm told that when an VC++ 6 project is copied and compiled with the
VS2005 compiler, that the runtime requires the .NET framework. I
don't have any machines handy that *don't* have the framework
installed so I can't confirm this.

Any idea why that would be or how to compile so .NET is not required?


Whoever told you that was sorely misinformed. Code compiled with VC++ 2005
(or 2003 or 2002) only requires the .NET framework if you choose to make it
require the .NET framework.


Is the compiler /clr flag the sole thing that determines whether the
..NET framework is accessed?

The only other thing that I can think of is that maybe there's a new
equivalent to VC++6's runtime DLLs. Or does VS2005 in this case
compile for the older DLLs?

Nov 17 '05 #3
"-DG-" <-D**@nospam.com> wrote in message
news:fu********************************@4ax.com...
Is the compiler /clr flag the sole thing that determines whether the
.NET framework is accessed?


In practical terms that's true. If one's goal is to target the .Net platform
one has to use a language that compiles to MSIL. The /clr option does that.

But note that a sophisticated application can load and start (some would say
host) the .Net Common Language Runtime. It's not often necessary, but it is
done in unmanaged code. It's not the kind of thing that you do by accident
as would be the case with an option chosen in error.

Regards,
Will
Nov 17 '05 #4
-DG- wrote:
The only other thing that I can think of is that maybe there's a new
equivalent to VC++6's runtime DLLs. Or does VS2005 in this case
compile for the older DLLs?


In addition to Will's response...

Like VC7 and VC7.1 before it, VC8 includes new runtime DLLs that must be
distributed with your application - tageting the older DLLs that are shipped
with the operating system is not supported (but can be done if you work at
it hard enough, and disable enough VC8 features).

-cd
Nov 17 '05 #5
On Wed, 19 Oct 2005 06:51:31 -0700, "Carl Daniel [VC++ MVP]"
Like VC7 and VC7.1 before it, VC8 includes new runtime DLLs that must be
distributed with your application -


I'm working blind, as all my machines have the framework installed.
The failure was reported by someone who doesn't have the framework,
and I bet he misinterpreted the error message. It was probably
complaining about DLLs rather then the .NET framework.

I don't suppose there is an easy way to turn off framework support to
test this?

Also, does anyone happen to have a list of DLLs that (may) need to be
loaded by native apps compiled with VS2005? I remember going through
this with every previous rev of VC++ and I usually miss at least one.


Nov 17 '05 #6
"-DG-" <-D**@nospam.com> wrote in message
news:7d********************************@4ax.com...
Also, does anyone happen to have a list of DLLs that (may) need to be
loaded by native apps compiled with VS2005? I remember going through
this with every previous rev of VC++ and I usually miss at least one.


I don't but you can get information about the DLLs to which your application
is implicitly linked with the command

dumpbin /imports YourExeNameGoesHere.exe

of with Depends if you have that tool.

Regards,
Will
Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
0
by: craigkenisston | last post by:
Using VS2005 to create an application compatible with framework 1.1 Is this possible ? I like the VS2005 IDE a lot much more than VS2003, however, I'm creating a library that needs to be...
9
by: Ioannis Vranos | last post by:
I compiled the hello world program, as specified in the current C++/CLI draft (version 1.5), by using Visual C++ 2005 Express Beta 1: int main() { System::Console::WriteLine("Hello World"); }
3
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after...
3
by: Darrin | last post by:
Hello, I see that VS2005 and the new framework 2.0 is out to the public now. Wondering about some things. When you install the new framework 2.0 can a person still use visual studio 2003 or...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
3
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... ...
40
by: GTi | last post by:
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.