473,657 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

static linking (GDIPlus.dll) with an VC++ application

Hello,

I want to know how to statically link GDIPlus.dll with VC++ application that
should be able to run on W2k machine without the existence of GDIPlus.dll on
the target machine.

Currently, when i statically link the dll and run the application on target
(W2K) machine it throws an exception saying GDIPlus.dll file not found.

Please help.

Ramendra Kotharkar
Mar 22 '07 #1
7 6626
>I want to know how to statically link GDIPlus.dll with VC++ application that
>should be able to run on W2k machine without the existence of GDIPlus.dll on
the target machine.
You can't statically link to a DLL.

You may be confusing the situation with the 'C' and MFC libraries
where you have the option to statically link or use the DLL - but
that's because MS supply both a static library and a DLL library.

Dave
Mar 22 '07 #2
Hello Dave,

I didn't understand the difference between static library and a Dll library.
Actually, at compile time i am specifying the GDIPlus.lib as additional
dependencies so that it is linked to the application statically at compile
time.

I have a requirement where i want to statically link the GDIPlus library to
my application and then when i port it on the target machine (W2K) it should
work with the presence of the GDIPlus.dll on the target machine.

thanks, Ramendra

"David Lowndes" wrote:
I want to know how to statically link GDIPlus.dll with VC++ application that
should be able to run on W2k machine without the existence of GDIPlus.dll on
the target machine.

You can't statically link to a DLL.

You may be confusing the situation with the 'C' and MFC libraries
where you have the option to statically link or use the DLL - but
that's because MS supply both a static library and a DLL library.

Dave
Mar 22 '07 #3
>Actually, at compile time i am specifying the GDIPlus.lib as additional
>dependencies so that it is linked to the application statically at compile
time.
What you're actually doing is implicitly linking your application to
GDIPlus.dll. The GDiPlus.lib is a library for the DLL, it's not a
static library.

Dave
Mar 22 '07 #4
Hello Dave,

How do i know if a particular dll is a static library or a dll library? Any
tool to check?

thanks, Ramendra

"David Lowndes" wrote:
Actually, at compile time i am specifying the GDIPlus.lib as additional
dependencies so that it is linked to the application statically at compile
time.

What you're actually doing is implicitly linking your application to
GDIPlus.dll. The GDiPlus.lib is a library for the DLL, it's not a
static library.

Dave
Mar 22 '07 #5
Hi Ramendra!
How do i know if a particular dll is a static library or a dll library? Any
tool to check?
A DLL is *always* a DLL...

Greetings
Jochen
Mar 22 '07 #6
I want to know how is static library different from ordinary dll (library) ?
I am not saying static library is not a dll. I want to know how do i link to
a library statically such that when i run the application on any other
machine that doesn't have the library it should work without problem.

"Jochen Kalmbach [MVP]" wrote:
Hi Ramendra!
How do i know if a particular dll is a static library or a dll library? Any
tool to check?

A DLL is *always* a DLL...

Greetings
Jochen
Mar 22 '07 #7
Ted
You can check to see if a library is purely static, or just an import
library, by using the LIB tool (using LIB /LIST) to see if there are any OBJ
files in there. If there are no OBJ files then it is a pure import library.

But that won't tell you if a library is mixed (it has some import parts and
some static parts). However, by the size of the OBJ files in the lib vs
the overall size of the lib you can tell it's mixed.

Ted.

"Ramendra Kotharkar" <Ra************ ***@discussions .microsoft.comw rote in
message news:31******** *************** ***********@mic rosoft.com...
>I want to know how is static library different from ordinary dll (library)
?
I am not saying static library is not a dll. I want to know how do i link
to
a library statically such that when i run the application on any other
machine that doesn't have the library it should work without problem.

"Jochen Kalmbach [MVP]" wrote:
>Hi Ramendra!
How do i know if a particular dll is a static library or a dll library?
Any
tool to check?

A DLL is *always* a DLL...

Greetings
Jochen

Mar 22 '07 #8

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

Similar topics

0
2496
by: Helmut Zeisel | last post by:
I want to build a static extension of Python using SWIG and VC++ 6.0 as described in http://www.swig.org/Doc1.3/Python.html#n8 for gcc. My file is testerl.i: ========================= %module testerl extern int hz(int i);
2
2025
by: Dale | last post by:
For the MS04-028 Security Bulletin (GDI+) it refers Visual Studio 2003 users to KB830348, which is the Visual Studio .NET 2003 GDIPLUS.DLL Security Update. Does this apply to Windows XP with either SP1 or SP2? The system requirements don't list Windows XP. From reading the Security Bulletin I was thought it applied to Windows XP, though it doesn't directly say so. -- Dale
4
1643
by: Rookie | last post by:
Hi, I needed some information on linking a C# application to a VC++ dll. How can this be done? It would be great if someone could give links to tutorials/articles on this subject. Thanks.
1
1458
by: Arnaud Debaene | last post by:
Hello, I think I found a bug in VC 7.1 concerning destruction of stack objects when linking a static, non managed, C++ library within a managed C++ application. Here is a repro case : 1) Build a static, unmanaged, library containing the following 2 files. Compiles with /MDd. // FILE BaseHolder.h #pragma once
0
1469
by: zhangrusi | last post by:
I have a static library that is compiled using the latest version of VC 6. It uses the multithreaded DLL versions of the run-time library, and it uses STL classes. I would like to make use of this static library in a VS .NET 2003 managed C++ project. Currently, I am just linking the compiled .lib file into my VC 7 project. (This is the simplest approach, as it is not practical to move the static library project to VC 7 at this time.) My VC...
3
1477
by: Eric W | last post by:
MS VC++ 7.1 - I have a project with static libs A, B and C where A depends on B anc C, also B depends on C. If I set this up in the project dependency dialog for A the Build environment puts B and C in the command line (seen in the Librarian view of the project settings for A) an as a result I get LNK4006 warnings all over the place. So I am trying to establish dependencies such that A gets rebuilt if source in B or C changes. What I...
5
5093
by: info | last post by:
Hi! Please be patient with a newbie... I use DevC++. I've found and compiled succefully various openGL examples. Before build the application, I link the project with static libs, like, in example, libglut32.a. The executables running fine, but if I try them on a system without glut32.dll, they don't start.
0
3976
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
0
1448
by: JohnIdol | last post by:
VC++6 to VC++2003 - linking troubles -------------------------------------------------------------------------------- Hi All, I successfully ported an application from VC++6 to VS2003. Solved compiling issues but now I am sticking with serious Linking troubles. I got a bunch of:
0
8402
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
8315
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8734
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8508
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
8608
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...
0
7341
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5633
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
2733
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
1627
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.