473,396 Members | 1,724 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,396 software developers and data experts.

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 6605
>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.comwrot e in
message news:31**********************************@microsof t.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
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...
2
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...
4
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
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)...
0
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...
3
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...
5
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...
0
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
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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...

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.