Solved

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

Posted on 1998-12-23
2
271 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

758 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

17 Experts available now in Live!

Get 1:1 Help Now