Problem in using com (not have .h file)
-
Hi, I have a already created COM :^) (.dll file only) which was used in c#.net code but i have to use it in C++ code :confused: :confused: . I dont have .h file for this COM,had only dll file. Can Anyone help me in : How can i use this COM im my c++ code :doh: ?? Thanx in advance :)
Manish
-
Hi, I have a already created COM :^) (.dll file only) which was used in c#.net code but i have to use it in C++ code :confused: :confused: . I dont have .h file for this COM,had only dll file. Can Anyone help me in : How can i use this COM im my c++ code :doh: ?? Thanx in advance :)
Manish
-
You can use #import to get wrapper classes for the stuff implemented, providing that the DLL has a typelibrary embedded in it.
Steve S Developer for hire
Thanx Steve:) Did u mean i should call getprocaddress on all functions i needed from that dll and make a wrapper around those functions...
Manish
-
Thanx Steve:) Did u mean i should call getprocaddress on all functions i needed from that dll and make a wrapper around those functions...
Manish
You need to use #import "yourdll.dll" statement in your code. Doing so,
.tlh
, and.tli
will be generated in debug/release folder. You can use.tlh
as header.Prasad Notifier using ATL | Operator new[],delete[][^]
-
You need to use #import "yourdll.dll" statement in your code. Doing so,
.tlh
, and.tli
will be generated in debug/release folder. You can use.tlh
as header.Prasad Notifier using ATL | Operator new[],delete[][^]
Thanx prasad :) I have used #import "mydll.dll" in my code but it giving error as "fatal error C1083: Cannot open type library file: 'mydll.dll': Error loading type library/DLL" Any alternative do you want to suggest,i think type library is not embeded in this dll...
Manish
-
Thanx prasad :) I have used #import "mydll.dll" in my code but it giving error as "fatal error C1083: Cannot open type library file: 'mydll.dll': Error loading type library/DLL" Any alternative do you want to suggest,i think type library is not embeded in this dll...
Manish
You need to give, full path, mentioning "\\".
Prasad Notifier using ATL | Operator new[],delete[][^]
-
You need to give, full path, mentioning "\\".
Prasad Notifier using ATL | Operator new[],delete[][^]
I ve tried all combinations with #import. If i delete this dll then it shows no such file menas it currectly points to this dll. Any sugestions or alternative??
Manish
-
I ve tried all combinations with #import. If i delete this dll then it shows no such file menas it currectly points to this dll. Any sugestions or alternative??
Manish
Is type library for same dll is not there?
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Is type library for same dll is not there?
Prasad Notifier using ATL | Operator new[],delete[][^]
no!! i was having only dll with me,how can i use that dll then??
Manish