Click here to Skip to main content
15,920,602 members
Home / Discussions / COM
   

COM

 
GeneralRe: Register updated COM object (COM wrapper) without reboot machine Pin
hchiu8-Aug-05 6:12
hchiu8-Aug-05 6:12 
GeneralUsing ActiveX component in a web page Pin
Spaz803-Aug-05 0:53
Spaz803-Aug-05 0:53 
Questionhow to write avi files Pin
limra1-Aug-05 22:09
limra1-Aug-05 22:09 
QuestionHow to Show selected ActiveX controls in a list Box Pin
Ashwin kumar Gurujala31-Jul-05 20:54
Ashwin kumar Gurujala31-Jul-05 20:54 
QuestionHow to manipulate ActiveDesktop buttons Pin
programvinod31-Jul-05 7:39
programvinod31-Jul-05 7:39 
QuestionHow to share stated COM+ objects cross process and machine Pin
xqxq30-Jul-05 16:35
xqxq30-Jul-05 16:35 
QuestionHow to interface a COM class in a non-COM DLL Pin
morenz30-Jul-05 4:04
morenz30-Jul-05 4:04 
AnswerRe: How to interface a COM class in a non-COM DLL Pin
geo_m31-Jul-05 10:32
geo_m31-Jul-05 10:32 
Hi,

I'm not sure what are you trying to achieve. I assume, that you have some DCOM object, exposing a set of functions, these being implemented in different .dlls, that can be dynamically loaded from your object. Problem is, that one of the parameters to these functions implemented in .dlls should be a pointer to the DCOM object that calls them. Is that right?

I think you need to include the ATL headers into your dlls as well, to have defined the ATL macro ATL_NO_VTABLE. This will not change your .dlls to COM dlls (they will not require the registration)

There's also another problem with the ALT objects. There's an interesting twist, because of IUnknown implementation. To keep it short, simply your ATL object is not really the object being constructed. If I assume your object name is CMyObject then the object constructed is in fact CComObject<CMyObject>. So to stay on the safe side, your parameter should not be only CMyClass&, but CComObject<CMyClass>& (or pointer if you prefer)

Anyway, safest way would be to export some sort of interface from the DCOM object, that these dlls will use to communicate. Then you can take the declaration of the interface from the header file generated by MIDL and use it in the .dlls. (filename is usually projectname.h)

Hope this helps
GeneralRe: How to interface a COM class in a non-COM DLL Pin
morenz31-Jul-05 12:49
morenz31-Jul-05 12:49 
GeneralRe: How to interface a COM class in a non-COM DLL Pin
geo_m31-Jul-05 19:08
geo_m31-Jul-05 19:08 
GeneralRe: How to interface a COM class in a non-COM DLL Pin
morenz1-Aug-05 12:42
morenz1-Aug-05 12:42 
QuestionHow to access COM enums from JScript Pin
kozu29-Jul-05 11:35
kozu29-Jul-05 11:35 
QuestionHow to make DCOM work over VPN ? Pin
vgrigor129-Jul-05 4:40
vgrigor129-Jul-05 4:40 
Questionhow to create COM DLL ..Help Me Pin
Anonymous29-Jul-05 1:18
Anonymous29-Jul-05 1:18 
AnswerRe: how to create COM DLL ..Help Me Pin
vgrigor129-Jul-05 4:48
vgrigor129-Jul-05 4:48 
AnswerRe: how to create COM DLL ..Help Me Pin
Logan from Singapore31-Jul-05 16:12
Logan from Singapore31-Jul-05 16:12 
Questionhow to create DLL ..Help Me Pin
Anonymous29-Jul-05 1:17
Anonymous29-Jul-05 1:17 
GeneralCOM Interop event handling - help! Pin
Will-FG28-Jul-05 23:50
Will-FG28-Jul-05 23:50 
GeneralLoading ActiveX under Limitted User Account Pin
MohammadAmiry28-Jul-05 7:32
MohammadAmiry28-Jul-05 7:32 
GeneralRe: Loading ActiveX under Limitted User Account Pin
vishalmore29-Jul-05 21:49
vishalmore29-Jul-05 21:49 
GeneralCall a running C# application from a C++ application Pin
scchan198427-Jul-05 22:02
scchan198427-Jul-05 22:02 
GeneralRe: Call a running C# application from a C++ application Pin
Lim Bio Liong29-Jul-05 2:54
Lim Bio Liong29-Jul-05 2:54 
GeneralRe: Call a running C# application from a C++ application Pin
Lim Bio Liong29-Jul-05 11:04
Lim Bio Liong29-Jul-05 11:04 
Questionhow to connect modem to CPU by using visual basic Pin
Member 214288927-Jul-05 20:26
Member 214288927-Jul-05 20:26 
GeneralOutlook 2003 COM AddIn Pin
civilwar27-Jul-05 4:04
civilwar27-Jul-05 4:04 

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.