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

COM

 
GeneralRe: COM using pure c++ Pin
Derek Tortonian5-Aug-14 11:54
Derek Tortonian5-Aug-14 11:54 
Member 9899644,
Sorry for not replying to your post, I completely forgot about it.
It sounds as though you are just learning about COM and it's associated functionality. This can be very difficult, because, typically, all you need to do is ignore one aspect of the creation and activation paradigm, and the whole thing just fails to operate as expected (and, you have no idea why).
When I was first trying to understand COM (syntax and the reasons it was designed in such a way), I found that reading Don Box's book: Essential COM was extremely helpful. You need an overview, and you need to understand why COM does what it does, and, to read some example source code.
As I recall, there are some excellent articles right here on the CodeProject about registering a COM server. Also, you don't mention how your COM client activates the object,...this is typically done with CoCreateInstance.
This is an excellent introductory series to COM: The COM Macro-Architecture Topology,
...and,...COM Macro Architecture Topology - Servers,
...and,...COM Macro Architecture Topology - Clients,
and,...COM IDs & Registry Keys in a Nutshell.
...Also, Michael Dunn has an excellent series on COM: Introduction to COM - What It Is and How to Use It., and,...
Introduction to COM Part II - Behind the Scenes of a COM Server
Several incredibly informative articles about COM are written by: Lim Bio Liong
Understanding The COM Single-Threaded Apartment Part 1,
...and,...Understanding The COM Single-Threaded Apartment Part 2
Jeff Glatt also has an excellent series: COM in plain C
COM in plain C, Part 2
COM in plain C, Part 3
COM in plain C, Part 4
COM in plain C, Part 5
COM in plain C, Part 6
COM in plain C, Part 7
...and, COM in plain C, part 8
In fact,...there is a HUGE list of CodeProject articles about COM: COM / COM+

modified 5-Aug-14 18:40pm.

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 
GeneralRe: COMException, error code :80040154 Pin
orélle17-Jun-14 3:12
orélle17-Jun-14 3:12 
AnswerRe: COMException, error code :80040154 Pin
Anup Kasat9-Feb-15 2:12
Anup Kasat9-Feb-15 2:12 
QuestionIFileSaveDialog / Filename using C++ Pin
jung-kreidler5-Jun-14 20:03
jung-kreidler5-Jun-14 20:03 
SuggestionRe: IFileSaveDialog / Filename using C++ Pin
Richard MacCutchan5-Jun-14 22:23
mveRichard MacCutchan5-Jun-14 22:23 
GeneralRe: IFileSaveDialog / Filename using C++ Pin
jung-kreidler23-Jun-14 21:17
jung-kreidler23-Jun-14 21:17 
QuestionHow to create a simple COM component in C++ Pin
CoRger5-Jun-14 1:07
CoRger5-Jun-14 1:07 
AnswerRe: How to create a simple COM component in C++ Pin
Richard MacCutchan5-Jun-14 3:04
mveRichard MacCutchan5-Jun-14 3:04 
AnswerRe: How to create a simple COM component in C++ Pin
Member 989964421-Jun-14 20:19
Member 989964421-Jun-14 20:19 
QuestionSetting up the COM+ Identity using C# Code Pin
Juan Topo19-May-14 8:50
Juan Topo19-May-14 8:50 
QuestionHow do I set variable in ShockwaveFlashObjects C# Pin
Member 106494598-Mar-14 5:04
Member 106494598-Mar-14 5:04 
QuestionVB6 to .Net Interop issue Pin
Sampath Sridhar1-Dec-13 22:10
Sampath Sridhar1-Dec-13 22:10 
QuestionCallback From .NET Com Class to Delphi Pin
P1kfr1k9-Oct-13 0:05
P1kfr1k9-Oct-13 0:05 
SuggestionRe: Callback From .NET Com Class to Delphi Pin
Richard MacCutchan9-Oct-13 0:49
mveRichard MacCutchan9-Oct-13 0:49 
QuestionThe group or resource is not in the correct state to perform the requested operation Pin
Hari-Adarapu19-Sep-13 11:49
Hari-Adarapu19-Sep-13 11:49 
QuestionWorkBooks::Opentext help Pin
ForNow13-Sep-13 10:37
ForNow13-Sep-13 10:37 
AnswerRe: WorkBooks::Opentext help Pin
ForNow14-Sep-13 16:12
ForNow14-Sep-13 16:12 
QuestionRe: WorkBooks::Opentext help Pin
Richard MacCutchan14-Sep-13 21:52
mveRichard MacCutchan14-Sep-13 21:52 
AnswerRe: WorkBooks::Opentext help Pin
ForNow15-Sep-13 5:13
ForNow15-Sep-13 5:13 

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.