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

How to tell if a lib file created in VC7 is a static or dynamic?

Hello,

Could anyone point me to a resource that will help me determine if a lib
file is a static lib or dynamic? Moreover, is there a tool that will tell me
the interface?

Thanks,
Kris

Jan 4 '06 #1
2 1208
i don't know how you can do this correctly, but there are a few clues:

a lib for a dynamic library contains only the linking information for the
exported types and functions.
hence it is very small (a few K).
if you open a lib for a dynamic library in a text editor or a hex editor,
you will see a lot of import descriptors, and little else.
if you have the header file, see if the functions are declared with the
dllexport directive. that also indicates that the libary accompanies a
dynamic library.

hope this helps a bit.

kind regards,
Bruno.

"Kris Takacs" <Kr********@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.com...
Hello,

Could anyone point me to a resource that will help me determine if a lib
file is a static lib or dynamic? Moreover, is there a tool that will tell
me
the interface?

Thanks,
Kris

Jan 4 '06 #2
"Kris Takacs" <Kr********@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.com...
Hello,

Could anyone point me to a resource that will help me determine if a lib
file is a static lib or dynamic? Moreover, is there a tool that will tell
me
the interface?


In general, it's impossible, because in general, they're no different. You
can certainly have a library that contains import records for a DLL and also
contains static linked code. The C++ runtime libraries are examples of
such - nearly the entire library is import descriptors, but there are a few
code objects as well.

Typically, you can tell them apart as Bruno already replied.

-cd
Jan 4 '06 #3

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

Similar topics

6
by: Dumitru Sipos | last post by:
Hello everybody! is there possible to have a function that is both static and virtual? Dumi.
0
by: lien | last post by:
In march 23, 04. Steven Cheng showed us how to do sortcommand for datagrid created at run time (thank you) . What if I have mixed static and dynamic columns? that is colunms added into static...
2
by: Joe | last post by:
Hi, I have a website with a mix of static (.html) and dynamic pages (.aspx) pages. I was wondering to change extension .html to .aspx , only to accommodate future needs of making static pages...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
13
by: Krivenok Dmitry | last post by:
Hello all! Perhaps the most important feature of dynamic polymorphism is ability to handle heterogeneous collections of objects. ("C++ Templates: The Complete Guide" by David Vandevoorde and...
24
by: Ken | last post by:
In C programming, I want to know in what situations we should use static memory allocation instead of dynamic memory allocation. My understanding is that static memory allocation like using array...
5
by: Amoril | last post by:
I've read quite a few different message on various boards and for some reason I'm still having trouble wrapping my head around this viewstate maintenance and trying to get these dynamically created...
4
by: =?Utf-8?B?UkQ=?= | last post by:
I'm working on migrating my VC++ 6.0 project to VS C++ 2005 and I'm bulding the project using NMAKE from the command line. The code is not GUI, all console utilities and services. I've managed to...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.