473,326 Members | 2,438 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,326 software developers and data experts.

DLLs

when I try to run my app. on a different computer, I get an error, that DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++ .Net
Express.
yours
Richard
Jul 23 '05 #1
7 1950
This is off-topic here. Try the news group
comp.os.ms-windows.programmer.tools.mfc

There is a compiler/linker option to statically link with MFC.

--
EventStudio 2.5 - http://www.EventHelix.com/EventStudio
Auto Layout and Generate Sequence Diagrams in PDF and MS Word

Jul 23 '05 #2
There are two ways to do this:
The way that does exactly what you ask is to statically link your DLLs.
I'm guessing that the DLLs that are required are MFC or something like
that (not your own).
You have to edit your project settings and look under linker. Here
there should be an option to choose how to link against Microsoft
libraries. I think the current selection will be "Using MFC as a
Dynamic Link Library" (DLL) and you want to change it to "Using MFC as
a Static Link Library". (You should watch out for this:
http://support.microsoft.com/default...b;en-us;194299)

What happens when you do this is all of the code that you use (I
believe it is only the code you use and not the whole DLL) is
incorporated into your EXE. This will bloat the size of your executable
(don't forget, big executables can be slower due to cache misses...).
This is why you should do the second option if possibe:
Package the required DLLs with your app. If you are using an installer
package like InstallShield, this is no problem. Even if you are just
using a zip package you can just include all of the DLLs required in
the same directory as your app.
Either way the error message should say which DLLs are missing (or it
will tell you one at a time - you will have to add the DLL it asks for
and then get another error message to find the next DLL). Just look on
the developer computer for the DLLs and include a copy of them in your
package.

Note that if you are using InstallShield or the like, you should
probably put the files in System32. But check the InstallShield help
for that. (This will make sure that the files are shared and the
space-saving attributes of DLLs are preserved.)

-Kalos

richard pickworth wrote:
when I try to run my app. on a different computer, I get an error, that DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++ .Net
Express.
yours
Richard


Jul 23 '05 #3
richard pickworth wrote:
when I try to run my app. on a different computer, I get an error, that DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++ .Net
Express.
yours
Richard


Let me guess: You have compiled it as "Debug" and therefore it links against
Debug-DLLs that are not found on "normal" systems. You can resolve it by
compiling it as "Release"

- Matthias Meixner
Jul 23 '05 #4
actualy, I have tried building as "release" - no joy.
richard
"Matthias Meixner" <ma**************@online.de> wrote in message
news:d7**********@online.de...
richard pickworth wrote:
when I try to run my app. on a different computer, I get an error, that
DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++
.Net
Express.
yours
Richard


Let me guess: You have compiled it as "Debug" and therefore it links
against
Debug-DLLs that are not found on "normal" systems. You can resolve it by
compiling it as "Release"

- Matthias Meixner

Jul 23 '05 #5
let me guess... You're working on the windows platform?

try using the Depends tool to establish your binary dependencies.
"richard pickworth" <ri***************@btopenworld.com> wrote in message
news:d7*********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
actualy, I have tried building as "release" - no joy.
richard
"Matthias Meixner" <ma**************@online.de> wrote in message
news:d7**********@online.de...
richard pickworth wrote:
when I try to run my app. on a different computer, I get an error, that
DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++
.Net
Express.
yours
Richard


Let me guess: You have compiled it as "Debug" and therefore it links
against
Debug-DLLs that are not found on "normal" systems. You can resolve it by
compiling it as "Release"

- Matthias Meixner



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 23 '05 #6
On Sat, 4 Jun 2005 15:53:53 +0000 (UTC), "richard pickworth"
<ri***************@btopenworld.com> did courageously avow:
when I try to run my app. on a different computer, I get an error, that DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++ .Net
Express.
yours
Richard

When you're setting up the project check the box for static linking as
opposed to dynamic linking

Ken Wilson

Amer. Dlx. Tele, Gary Moore LP, LP DC Classic w/P90s,
Jeff Beck Strat, Morgan OM Acoustic,
Rick 360/12, Std. Strat (MIM), Mesa 100 Nomad,
Mesa F-30

"Goodnight Austin, Texas, wherever you are."
Jul 23 '05 #7
Register the DLLs with regsvr32.exe?
yours
Richard
"richard pickworth" <ri***************@btopenworld.com> wrote in message
news:d7*********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
actualy, I have tried building as "release" - no joy.
richard
"Matthias Meixner" <ma**************@online.de> wrote in message
news:d7**********@online.de...
richard pickworth wrote:
when I try to run my app. on a different computer, I get an error, that
DLLs
are missing. How can I make my app. "stand alone"?. I am using VisC++
.Net
Express.
yours
Richard


Let me guess: You have compiled it as "Debug" and therefore it links
against
Debug-DLLs that are not found on "normal" systems. You can resolve it by
compiling it as "Release"

- Matthias Meixner


Aug 8 '05 #8

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

Similar topics

2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
2
by: Shiraz | last post by:
Hi I just made an installer for an application that uses two external COM dlls. On the surface, everything seems to be running smoothly and the the application runs without any errors. However,...
11
by: Devender Khari | last post by:
Hi Friends, I'm facing a situation as follows, need help on identifying possible issues. There is an MFC application developed in VC6.0, say ABCVC6.exe and another developed in VC.NET, say...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
7
by: Oenone | last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far. I have an ASP.NET application that relies on several DLLs to work. Currently in order to get my site working I have to put...
6
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing....
0
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG....
7
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...
3
by: gopal | last post by:
I am developing an application in CSharp - windows forms based, which copies the DLLs both unmanaged and managed DLLs from a shared folder and will overwrite the existing versions of managed &...
10
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I usually deploy my ASP .NET application to the server by publishing, using Visual Studio 2005 publish feature. This creates the Bin folder on the server, with the compiled DLLs. I've...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.