473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

VS.NET Stand alone .exe problem - msvcr71.dll error

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 to the Windows
libraries.

After Googling extensively and getting .NET to generate a sample project I
have made the following changes to my project property pages:

Configuration Properties: General: Use of MFC - "Use MFC in a Static
Library"
C/C++: Code Generation: Runtime Library: - "Multi-threaded(/MT)"
Linker: Input: Ignore Specific Library: - "libcmt.lib"

My project compiles and links fine, but when I try to run it on a non-.NET
machine, it complains that it can't find msvcr71.dll. I have built clean
and thrown away all extra files between builds.

Any help would be greatly appreciated. Thanks for your time.
-Sara

Nov 17 '05 #1
3 3842
My project compiles and links fine, but when I try to run it on a non-.NET
machine, it complains that it can't find msvcr71.dll. I have built clean
and thrown away all extra files between builds.

Any help would be greatly appreciated. Thanks for your time.
-Sara

I think you have to redistribute the file (msvcr71.dll) with your
application. See
http://msdn.microsoft.com/library/de..._libraries.asp

--
sashan
http://www.cs.auckland.ac.nz/~sgov008/

Nov 17 '05 #2
"Sara Shoemaker" <sa***********@geospiza.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

My project compiles and links fine, but when I try to run it on a non-.NET
machine, it complains that it can't find msvcr71.dll. I have built clean
and thrown away all extra files between builds.


Are you linking it against any libraries that might themselves reference the
run-time DLL?

The way to diagnose these problems to use the Depends program, which comes
with Visual Studio (or can be optained from http://www.dependencywalker.com/

That will tell you more about what's going on.

I'm not convinced about your library ignore line, either, though I don't
think that's what's causing this problem.

Will

Nov 17 '05 #3
Turns out that the qt libraries were referencing the runtime DLL, thanks for
the encouragement to look in that area.
When I fixed that I removed the "ignore" line, since those DLL refs were
gone.

-Sara

"Will Dean" <wi**@nospam.demon.co.uk> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
"Sara Shoemaker" <sa***********@geospiza.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

My project compiles and links fine, but when I try to run it on a non-.NET machine, it complains that it can't find msvcr71.dll. I have built clean and thrown away all extra files between builds.
Are you linking it against any libraries that might themselves reference

the run-time DLL?

The way to diagnose these problems to use the Depends program, which comes
with Visual Studio (or can be optained from http://www.dependencywalker.com/
That will tell you more about what's going on.

I'm not convinced about your library ignore line, either, though I don't
think that's what's causing this problem.

Will


Nov 17 '05 #4

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

Similar topics

9
by: none | last post by:
Howdy all, I'm wondering if someone could give some direction on a problem I have or share their experiences. I'm wanting to create a little PHP application that will run on a local machine...
121
by: David Pendrey | last post by:
I was wondering if it is at all posible to write a stand alone .EXE program in Visual Studio .NET. Hopefully in VB.NET but if not another language would be ok. Thanks for the assistance
3
by: Todd D. Levy | last post by:
What do I need to get (from Microsoft I assume) in order to distribute stand alone Access applications to people who do not (and will not) have Access installed on their systems? I have heard...
16
by: Roman Yankin | last post by:
Hello All, Is there a way to compile C# windows application as a stand alone program? In my univ class we don't have VS.NET installed and I need to have my executable running with out .NET...
7
by: Ulrich Wisser | last post by:
Hi, I would like to stop the postmaster every night and run vacuum pg_dump reindex in the stand alone backend.
2
by: jim-on-linux | last post by:
py help, The file below will run as a stand alone file. It works fine as it is. But, when I call it from another module it locks my computer, The off switch is the only salvation. This...
10
by: discobay | last post by:
Is there a way to create a stand alone .exe from VB2005, that does not depend upon the .NET framework being installed on the target machine? I have followed previous threads on this subject and...
11
by: pg | last post by:
My old HD crashes, so I had to do a total re-install. After installer XP, I went to the Micrsoft Update site to get all the update. After 5 hours or so ... the update cycle started looping. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.