473,803 Members | 4,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using dlls built in VC6 in project wrote .net

I try to build dll in VC .NET,
In that project I use dlls that were built in VC6, and I get a lot of errors.
(for example <iostream.h> instead of <iostream> etc.)
I am not aloud to change anything inthe code of projects that were built in vc6.
I need to make it works together(dlls that were built in vc6 and the one that was built in .NET).
The main problem is that the vc6 header files that were included in .net source code raise such errors of names of headers files that are different from 6 to .NET,
or dlls that are not found in .net and do in vc6.
Does anyone know a solution to that problem?
Does it depends on the project type that I open?
Thanks in advance
Keren

*************** *************** *************** *************** **********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 17 '05 #1
2 1349
Hallo !
I try to build dll in VC .NET,
In that project I use dlls that were built in VC6, and I get a lot of errors.
(for example <iostream.h> instead of <iostream> etc.)
I am not aloud to change anything inthe code of projects that were built in vc6.
I need to make it works together(dlls that were built in vc6 and the one that was built in .NET).
The main problem is that the vc6 header files that were included in .net source code raise such errors of names of headers files that are different from 6 to .NET,
or dlls that are not found in .net and do in vc6.
Does anyone know a solution to that problem?
Does it depends on the project type that I open?


The STL headers with the .h extension are deprecated. Even in VC6 you
should use the files without an extension, and if needed add using
namespace std;

--
Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.mpdvc.de
Samples: http://www.codeguru.com http://www.codeproject.com
Nov 17 '05 #2
> I try to build dll in VC .NET,
In that project I use dlls that were built in VC6, and I get a lot of
errors. (for example <iostream.h> instead of <iostream> etc.)
I am not aloud to change anything inthe code of projects that were
built in vc6.
I need to make it works together(dlls that were built in vc6 and the
one that was built in .NET).
The main problem is that the vc6 header files that were included in
.net source code raise such errors of names of headers files that are
different from 6 to .NET, or dlls that are not found in .net and do
in vc6.
Does anyone know a solution to that problem?
Does it depends on the project type that I open?

The solution is to do everything in using a single version of VC++, be it
VC6, VC7 or VC7.1. When you have a DLL that exposes C++ standard library
classes in it's API it's simply not possible to mix compiler versions. If
you can't change the code of the existing DLLs and rebuild them, then you'll
need to do everything in VC6.

-cd
Nov 17 '05 #3

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

Similar topics

10
2522
by: John Underwood | last post by:
Can I use python23_d and python23 to develop an extension for a commercial application uses python22.dll? (Providing that I do not use any new features found only in 2.3.) I would bulld version 2.2 but I am having trouble doing this with Visual Studio .NET Standard. (There is a well documented problem with version 2.2 (involving largeint.h) and VS.NET but none of the solutions that I found have worked.) On the other hand, I have...
2
1794
by: kinghuangz | last post by:
Everyone: I want to use a DLL(FileName:PubFunction.Dll) built with VS.Net(C#) in a unmanaged Program .But there was a Dll just has the same filename,it was built with VC++(6.0).The unmanaged was loaded by LoadLibrary function firstly,and it would be free until the Program's end.How can I Load the managed Dll?
5
1812
by: Jozsef Bekes | last post by:
Hi All, I have a question about how to use the final product I build with dotnet. I used to work with VC++ 6, and there was an option in the project settings to either use the MFC dlls or build the exe in a way that the MFC dlls are not needed (if I am not mistaken, the term was statically linked and dynamically linked). I wonder how it works with dotnet. If I build an exe and take it to a machine without dotnet installed (98, 2000 or...
1
340
by: Arne | last post by:
All my code behind pages gets compiled into one DLL. I would like to redirect my code behind into multiple DLLs so that I get more flexibility when installing new features to a web site. I am adding some new features to a web sites that are not ready for production. At the same I would like to be able to fix bugs without installing the new features. I would like to put the new features into a separate DLL and keep all the old feature in another...
8
1213
by: Brett Romero | last post by:
Say I have four projects - one is an EXE and three are DLLs. The EXE references all three DLLs. If I update one of the DLLs and compile, next time I run my EXE project, it will get the latest version of the changed DLL and use it. How do I keep the EXE project from getting the latest version of a DLL? I'd like it to use the version in its bin folder (b/c copy local is true). Thanks, Brett
7
1941
by: Jeff Lynn | last post by:
Help! I recently upgraded my VS V6 to VS 2005 and was unable to build projects that were perfectly ok under VS V6. Where VS 2005 fails was in the linker resolving external DLLs, which are Open Source DLLs like "log4Cxx" and "Xerces C++" DLL libraries. VS 2005 converted my projects without any problem. Even the proper lib includes and lib path were captured. But its linker just unable to resolve the C++ function references.
9
1986
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as side-by-side assemblies and that application has to have a manifest binding it to those assemblies. My question is, can previously built apps use my new dlls build with vs2005? It would be really important to make it work, because otherwise we would...
21
3871
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight different flavors, each with its main program, libraries, datafiles, doco, etc. Each flavor will also have one or more standalone executables that can be called as tools from within the main program.
2
1106
by: ChrisM | last post by:
Hi, I have a C# project that is currently a standalone application. (It compiles to create a single EXE file). A new project that I have now been given to work on needs to be a separate application, but it could share some of the functionality of the other project. The obvious solution seems to be to compile the original application to create the EXE file plus a DLL containing the common stuff, then I can reference the DLL with the...
0
9564
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
10548
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...
0
10316
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
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
9125
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
6842
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2970
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.