Solved

Extracting tlb from unmanaged dll.

Posted on 2013-01-15
5
1,504 Views
Last Modified: 2013-01-16
I have third party unmanaged dll. I need to extract tlb from it. Is it possible?
0
Comment
Question by:MrunalM
  • 3
5 Comments
 
LVL 22

Accepted Solution

by:
ambience earned 200 total points
ID: 38778540
Most probably the tlb is stored in the dll as a resource. If you have visual studio open the dll and select the open type to be Resources. That way you can view the TLIB resource section and export from it. Some versions of VS dont support this, but it used to work with VC6 for example. I guess the Express editions dont provide resource editing.

BTW, a simpler way that might work is to use 7-zip to extract the dll and find the tlb there. I havent tried it for TLB but it works for other resources like icons.
1
 
LVL 86

Assisted Solution

by:jkr
jkr earned 200 total points
ID: 38778716
You could use the "OLE/COM Object Viewer" (oleview.exe) that ships with Visual Studio to extract the TLB.
0
 

Author Closing Comment

by:MrunalM
ID: 38781362
Both of these ways are correct but I am looking for a command like tlbexp (which work only for managed DLL) becuase I want to extract tlb at runtime and use it.
0
 
LVL 22

Expert Comment

by:ambience
ID: 38782678
you can use 7zip exe or dll (SDK) for that.
1
 
LVL 22

Expert Comment

by:ambience
ID: 38782681
And as a last resort, write some code to  extract it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using Delphi code in a Builder project that uses a DLL 3 107
Need some help with listview limit text 20 97
thread-safe code in c++ 2 82
Arduino EDI - Programming language 3 79
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now