Solved

How to create a .dll when all I have is .lib file?

Posted on 1998-12-23
2
273 Views
Last Modified: 2010-04-01
I started to develop a software that would extract user data from certificates and I use COM technology as specified in MSDN Library examples on the Web. The problem is that I use Certcli 1.0 Type Library which got registered via VB 5.0 add reference. But in registry there is no reference registered and there is also no .dll for use as it should be in order for COM CoCreateInstance to work. (Just imagine you want to use GetConfig method from CertConfig interface) When the program runs CoCreateInstance fails as expected. All I have is a few .tlb files and Certidl.lib. How can I create a dll from that file. Is it even possible.

Since Microsoft published quite many examples and all of them follow the same principle I assume there must be a way or to create a .dll or download it from someplace.

This is awfully urgent to me. I'll start with 400 points and will give up to 800. Depends how much additional info you will supply. Please be as descriptive as  possible.
0
Comment
Question by:Nitemare
2 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1180936
Take a look with a tool called dumpbin or implib (search altavista to find it). See if it exports any functions.

With com classes. If you can reference it from VB, you should be able to see it in the Object Browser. Press F2.
0
 
LVL 1

Accepted Solution

by:
arunprakash earned 400 total points
ID: 1180937
I think u can get it by creating the wrapper classes from the Type library through the class wizard.. I have dont that long time back.
Select create new class from file option.


Write to me if it works,
thanx,
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

776 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