473,947 Members | 28,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1994
This is off-topic here. Try the news group
comp.os.ms-windows.program mer.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
2871
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 DLLs and a test application (an .EXE). The .EXE is my startup application. All the DLLs are shared components. This means that they contain a key and are stored in the GAC. When I go to run the test application in the IDE, it will not execute...
2
4253
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, I am not completely satisfied by my implementation. I basically used a software that generates an msi file quite easily and included the two dlls in my package. I then edited the msi file using orca, and forced the dlls to self register by...
11
2311
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 DEFVCNET.exe. There are a few DLLs that are to be used by these applications. All these DLLs are originally developed in VC6.0 but some of them are now migrated to VC.NET. So, let's say we have PQRVC6.dll and XYZVCNET.dll.
0
3238
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
7
3119
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 them all in the bin/ folder within my web site's directory. As I have numerous web sites, I want to be able to place all of these DLLs just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I don't want to put them into the...
6
2218
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. If someone could tell me what I'm missing that would be great. 1. Create an external class and call it Test.dll. 2. Create a test Asp.net app called App.sln. 3. For App.sln I set a reference to Test.dll. 4. Compile App.sln and run it. The web...
0
1432
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. Initially, the machine environment variables were set to enable code development; however, I am facing problem deploying the application. To work with these wrapped libraries, the application seems to access a specific dll, for instance, let's say the C...
7
1946
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.
3
2734
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 & unmanaged DLLs into folder where some .NET application and a VB application has been installed. To be more clear, i will make some chnages to DLLs and using this tool(developed in CSharp) i will overwrite the existing version of DLLs - unmanaged...
10
1942
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 been asked to publish by copying the files manually instead. I stopped IIS for the application, deleted the application files and subfolders from the server, copied the files and folders from my local PC's project,
0
10162
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11573
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...
1
11346
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
10690
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8254
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7429
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();...
1
4945
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4537
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3542
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.