473,480 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MSVCR71.DLL with VC 7.0 ?

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 !

Nov 17 '05 #1
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
Nov 17 '05 #2

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

Similar topics

1
1569
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...
0
2221
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...
4
3113
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...
4
5113
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...
3
3844
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...
1
2809
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...
48
4876
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...
7
3421
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...
2
3478
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?
0
6903
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
7071
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
6726
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
6861
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...
0
5318
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
4763
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
2987
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
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.