473,671 Members | 2,258 Online
Bytes | Software Development & Data Engineering Community
+ 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 1159
"-DG-" <-D**@nospam.com> wrote in message
news:6s******** *************** *********@4ax.c om...
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.nos pam> 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.c om...
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.c om...
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 YourExeNameGoes Here.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
3912
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 make it easier for someone (i.e. a Microsoft person) to digest the information and respond to it. I am a C++ and Java developer with over 3 years of industry experience. I've written low level C++ code, in addition to web clients that use web...
0
1428
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 compatible with frm 1.1. At the begining, I started to use the VS2005 IDE and I thought it could not be a problem, however, when I recreated a project with VS2003 and joined all the pieces I found that I was using stuff not available before, though I...
9
1713
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
11806
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 having installed MS .NET Framework 2.0 Beta 2 on it, from http://www.microsoft.com/downloads/details.aspx?FamilyId=7ABD8C8F-287E-4C7E-9A4A-A4ECFF40FC8E&displaylang=en), but got the following message:
3
1791
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 do you need to use Visual Studio 2005? If you can use the new framework 2.0 with VS2003 are there any benifits?
10
2527
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. Anyway, I decided to have a go at loading them as web projects from our Win2k3 server. It gets so far and then says "The web server does not appear to have FrontPage server extensions installed".
6
3619
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 list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
3
2159
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... System.SystemException: The trust relationship between this workstation and the primary domain failed.
40
2785
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 source code?
0
8472
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8390
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.