Click here to Skip to main content
15,886,873 members
Home / Discussions / COM
   

COM

 
GeneralRe: Registration Free COM / COM Interop Pin
F-ES Sitecore24-Mar-15 8:12
professionalF-ES Sitecore24-Mar-15 8:12 
QuestionHow to SubClass ContentControl in MSWORD Pin
Member 1017975812-Dec-14 16:07
Member 1017975812-Dec-14 16:07 
QuestionDCOM CLASSNOTREG error Pin
Billy Bang19-Nov-14 18:58
Billy Bang19-Nov-14 18:58 
AnswerRe: DCOM CLASSNOTREG error Pin
Richard MacCutchan19-Nov-14 21:29
mveRichard MacCutchan19-Nov-14 21:29 
GeneralRe: DCOM CLASSNOTREG error Pin
Billy Bang19-Nov-14 21:48
Billy Bang19-Nov-14 21:48 
GeneralRe: DCOM CLASSNOTREG error Pin
Richard MacCutchan19-Nov-14 22:49
mveRichard MacCutchan19-Nov-14 22:49 
QuestionHow to remove other submenu items when implement my context menu handle. Pin
chiyun11-Sep-14 20:39
chiyun11-Sep-14 20:39 
QuestionC# COM Server should be called by a C++ client... Pin
Juergen_8027-Aug-14 1:44
Juergen_8027-Aug-14 1:44 
Hi all,

I'm absolutely no expert with COM but I have a (maybe very easy) question to you.

I have a .dll file and would like to call some functions out of that. So I've created now a .tlb file out of the .dll with the command:
regasm XYZ.dll /tlb

This worked great and now I could also create the .tlh file out of this .tlb If I add this line in my C++ code:
#import "XYZ.tlb" named_guids raw_interfaces_only

and recompile the project.

That all worked great right now. But now I have the problem how I must call this part in my code to use the functions out of this .dll file?


I know that it should work with the CoCreateInstance(...) function but I don't know what parameters I must set there exactly?

Maybe I could send to someone my little example and he could help me? I thinks this should be no problem for an expert?

In this forum it's not possible to add a little attachment Frown | :-( .

Thanks for any help!!!

Regards,

Jürgen
SuggestionRe: C# COM Server should be called by a C++ client... Pin
Richard MacCutchan27-Aug-14 2:09
mveRichard MacCutchan27-Aug-14 2:09 
GeneralRe: C# COM Server should be called by a C++ client... Pin
Juergen_8027-Aug-14 2:27
Juergen_8027-Aug-14 2:27 
QuestionCreating an Access Add-In that can be used by all users - "Connect" error Pin
lmaycock8-Aug-14 3:04
lmaycock8-Aug-14 3:04 
Questioncapture Event in ActiveX component Pin
pablogvivo28-Jul-14 4:28
pablogvivo28-Jul-14 4:28 
Questionerror in an example of loading dll dynamically Pin
virusx198416-Jul-14 4:41
virusx198416-Jul-14 4:41 
AnswerRe: error in an example of loading dll dynamically Pin
Richard MacCutchan16-Jul-14 5:49
mveRichard MacCutchan16-Jul-14 5:49 
QuestionHow to simulate click event on IHtmlObjectElement in C++? Pin
FoxBryant10-Jul-14 0:55
FoxBryant10-Jul-14 0:55 
QuestionCOM using pure c++ Pin
Member 989964421-Jun-14 20:12
Member 989964421-Jun-14 20:12 
AnswerRe: COM using pure c++ Pin
Derek Tortonian28-Jun-14 8:37
Derek Tortonian28-Jun-14 8:37 
GeneralRe: COM using pure c++ Pin
Member 989964429-Jun-14 7:21
Member 989964429-Jun-14 7:21 
GeneralRe: COM using pure c++ Pin
Derek Tortonian5-Aug-14 11:54
Derek Tortonian5-Aug-14 11:54 
QuestionCOMException, error code :80040154 Pin
orélle15-Jun-14 21:58
orélle15-Jun-14 21:58 
AnswerRe: COMException, error code :80040154 Pin
Richard MacCutchan15-Jun-14 23:42
mveRichard MacCutchan15-Jun-14 23:42 
GeneralRe: COMException, error code :80040154 Pin
orélle16-Jun-14 23:15
orélle16-Jun-14 23:15 
GeneralRe: COMException, error code :80040154 Pin
Richard MacCutchan16-Jun-14 23:21
mveRichard MacCutchan16-Jun-14 23:21 
GeneralRe: COMException, error code :80040154 Pin
orélle16-Jun-14 23:38
orélle16-Jun-14 23:38 
GeneralRe: COMException, error code :80040154 Pin
Richard MacCutchan17-Jun-14 0:16
mveRichard MacCutchan17-Jun-14 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.