Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Component Object Model dll using C

Status
Not open for further replies.

readytoride39

Programmer
Nov 4, 2005
1
US
I am in the very beginnings of a project. I have a dll that currently creates a lib which is linked into a "C" exe. I need to convert this dll to com so that I don't have to compile the other exe everytime a change is made to the dll. I think I kind of understand the starting point for what I need to do to the DLL itself but what I am confused about is how to call the com dll from the original exe that used to link a lib. Can anyone give me advice on how to do this and a good book on Com? Also the original dll was created using Visual studios C++ version 6. When I rework the DLL should I also do it in the .Net environment? Is there any main difference between the two compilers in regard to Com that will cause headaches for me? Thanks in advance Patrick
 
COM and .net are two different beasties: it is like a pangolin and a numbat - both are anteaters, one is a mammal the other is a marsupial.

You can use do COM projects using the latest compilers but you can't do .net projects using the earlier ones.

Don't quite understand why you need to rebuild the other exes every time you change the dll. You only need rebuild them if the header file changes. VS should create a .lib and a .dll. You only link to the .lib and change the .dll as often as you wish without rebuilding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top