Hi,
we are writing a program which uses some third party APIs librares.
Those APIs are dinamically linked to the MSVCR71.DLL.
Unfortunately, we are compiling with the C++ DOT NET 7, which uses
the MSVCR70.DLL.
This means, that we are able to compile, but when in our code we try
to call some function of the MSVCR7x.DLL, the program crashes.
Probably because at runtime sometime the functions in the MSVCR70.DLL are
called, and sometimes the ones in MSVCR71.DLL (causing some confusion in the
heap ? ).
We tryed to statically link the MSVCR70.DLL, but the program crashes however
:-(
The function that crashes is:
fprintf( pStream, ("%s %s\r\n"), pszKey, pszValue );
If we call it with just 3 arguments it works fine:
fprintf( pStream, "%s", pszKey );
In the past we already had some kind of this problem
(unpredictable behaviour and crashes).
We were using the VC 6 and the third party APIs used the MFC 7.
We solved the problem moving to the VC 7 (= DOT NET 1).
But this time we can not move to a newer DOT NET . :-(
Is there some way to avoid this runtime confusion when calling library
functions which are defined in different version of DLLs ?
Any sugguestion would be really appreciated.
saluti ! 1 2341
Fabuio wrote: Hi,
we are writing a program which uses some third party APIs librares. Those APIs are dinamically linked to the MSVCR71.DLL.
Unfortunately, we are compiling with the C++ DOT NET 7, which uses the MSVCR70.DLL. This means, that we are able to compile, but when in our code we try to call some function of the MSVCR7x.DLL, the program crashes.
Probably because at runtime sometime the functions in the MSVCR70.DLL are called, and sometimes the ones in MSVCR71.DLL (causing some confusion in the heap ? ).
We tryed to statically link the MSVCR70.DLL, but the program crashes however :-(
The function that crashes is: fprintf( pStream, ("%s %s\r\n"), pszKey, pszValue );
If we call it with just 3 arguments it works fine: fprintf( pStream, "%s", pszKey );
In the past we already had some kind of this problem (unpredictable behaviour and crashes). We were using the VC 6 and the third party APIs used the MFC 7. We solved the problem moving to the VC 7 (= DOT NET 1). But this time we can not move to a newer DOT NET . :-(
Is there some way to avoid this runtime confusion when calling library functions which are defined in different version of DLLs ?
In a nutshell - no. If you're linking with static libraries compiled with
VC7.1, then you need to be building with VC7.1. There probably are some
corner cases that could be made to work, but in general it's not going to
happen.
I'd suggest contacting the 3rd party and requesting libraries for VC7.
-cd This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David Potahisnsky |
last post by:
Hi everyone!
I am working with C++ .NET. In this environment I have activeX.
During registration on new computer without .NET framework dll cries about
missing msvcr71.dll. When I put this dll...
|
by: seanick |
last post by:
Hi, I was profiling one of my apps in depends.exe, and noticed the functions
FlsAlloc, FlsFree, etc. being searched for every time that msvcr71.dll was
loaded. I have seen it before too, but I...
|
by: Fabian Heuberger |
last post by:
Hi there
I've seen some apps proged with this new styles (styles like VS.NET). I
think, this apps are using the mfc71.dll and msvcr71.dll from M$. I
don't know how i have to implement this dll's...
|
by: Baga |
last post by:
Our product is compiled with /MD switch, so it uses
MSVCRT.DLL But as every system configuration that we
support includes this file anyway, we do not actually
redistribute it, instead we use the...
|
by: Sara Shoemaker |
last post by:
I am having problems creating a stand-alone Windows app.
I am using a .vcproj file that was translated from a Qt project file using
the Qt
plug-in. My problem is in getting it statically linked...
| |
by: Chris |
last post by:
Hi!
I have an application developed using VC++.NET 2003. Up until now, it's
worked fine for my users. However, I just got a tech support request
yesterday from someone who can't get the...
|
by: meyer |
last post by:
Hi everyone,
which compiler will Python 2.5 on Windows (Intel) be built with? I
notice that Python 2.4 apparently has been built with the VS2003
toolkit compiler, and I read a post from Scott...
|
by: sturlamolden |
last post by:
This question has been asked many times, and last time I was accused of
spreading FUD. So now I will rather propose a solution.
The reason for the problem is as follows:
The binary installer...
|
by: Konte |
last post by:
Are there news about the impossibility of redistributing msvcr71.ddl
with own stand-alone application written in python for who doesn't have
MSVC7 license?
|
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...
|
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...
| |
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...
|
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...
|
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,...
|
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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |