473,473 Members | 4,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using VS2005 dll's in 2003 projects

Hi,
I'm converting our code base into VS2005 and we have alot of Managed
c++. Problem is, is that for some reason some of our code will
compile, but doesn't run correctly in VS2005. So, as we can continue
moving forward we decided to keep the managed c++ stuff in VS2003 and
just compile them seperatley.

My problem is that when I tried to reference one of our VS2005 dll's is
gave me an error, so I tried to reference several different 2005
generated dll's and had the same problem. SO I referenced the same dll
in but genereated in 2003 and it was fine. Is there a problem with
this? BEcause I really do need to reference these libraries that I'm
geneerating in 2005, in the MCPP in 2003.
Thanks in advance for the help.

Aug 31 '06 #1
4 1312
I'm pretty sure you are NOT going to be able to do that. Think about it.
Your application is using version 1.1 of the framework, and the dll's will be
trying to use 2.0 version of the framework.

WhiteWizard
aka Gandalf
MCSD.NET, MCAD, MCT
"DaTurk" wrote:
Hi,
I'm converting our code base into VS2005 and we have alot of Managed
c++. Problem is, is that for some reason some of our code will
compile, but doesn't run correctly in VS2005. So, as we can continue
moving forward we decided to keep the managed c++ stuff in VS2003 and
just compile them seperatley.

My problem is that when I tried to reference one of our VS2005 dll's is
gave me an error, so I tried to reference several different 2005
generated dll's and had the same problem. SO I referenced the same dll
in but genereated in 2003 and it was fine. Is there a problem with
this? BEcause I really do need to reference these libraries that I'm
geneerating in 2005, in the MCPP in 2003.
Thanks in advance for the help.

Aug 31 '06 #2
I know, I figured as much, but I was just hoping there was some strange
hack to get around it.

Aug 31 '06 #3
That's great thinking, because using unsupported hacks always
contributes to the stability of a system =)

My suggestion is to figure out why its not working in 2005 and fix it.
You will be thankful that you did.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"DaTurk" <mm******@hotmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
>I know, I figured as much, but I was just hoping there was some strange
hack to get around it.

Aug 31 '06 #4
You cannot do that. .NET 2.0 introduces new types, new type members, etc not
to speak of new things like generics, anonymous methods and so. It is pretty
obvious that .NET2.0 code cannot run in 1.x environment. Because of this MS
made 2.0 images not loadable by 1.x runtime. As soon as you try to do this a
"bad image" exception so thrown.

--
Stoitcho Goutsev (100)

"DaTurk" <mm******@hotmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi,
I'm converting our code base into VS2005 and we have alot of Managed
c++. Problem is, is that for some reason some of our code will
compile, but doesn't run correctly in VS2005. So, as we can continue
moving forward we decided to keep the managed c++ stuff in VS2003 and
just compile them seperatley.

My problem is that when I tried to reference one of our VS2005 dll's is
gave me an error, so I tried to reference several different 2005
generated dll's and had the same problem. SO I referenced the same dll
in but genereated in 2003 and it was fine. Is there a problem with
this? BEcause I really do need to reference these libraries that I'm
geneerating in 2005, in the MCPP in 2003.
Thanks in advance for the help.

Aug 31 '06 #5

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

Similar topics

19
by: Randy | last post by:
Hi, I need to create a simple dll which will be used by MS Access and .ASP apps. What type of dll would be best and can anybody point me to a complete example which I can compile and run with...
9
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
10
by: GaryDean | last post by:
A couple of weeks ago I reported a bug in vs2005 where it corrupted projects converted from vs2003 if a 2003 dataset were modified or recreated. Steven Cheng was able to recreate the bug. I ...
6
by: Alex | last post by:
Hello people, We have a large application (about 5000 source files) consisting of multiple executables, DLLs and COM components written in C++. We develop and build it in Visual Studio 2003. ...
1
by: Ben Fidge | last post by:
Can anyone shed some light on why compiling and running web-apps is so slow in VS2005. I have a solution with 3 web-apps, 20 or so library projects and several winforms apps. All in all it totals...
2
by: Frank Rizzo | last post by:
Hello, I work with a vs2005 solution that has about 10 pretty heavy duty projects. All projects have dependencies among themselves via project references (as opposed to DLL references). As you can...
1
by: John Olbert | last post by:
We are trying to use legacy Visual Basic 6 ActiveX controls in C# projects under Vs2005. The importing into Vs2005 Tools of the registered Ocx works fine. We can place an instance of the control on...
5
by: Gianmaria Iaculo - RPC | last post by:
Hi, a simple question i think. I have some old projects written in C++ (VS6). I want to class and objects from this projects ( I have sources natually) in a C# application (win). Is it possible?...
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
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,...
0
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...
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: 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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.