Click here to Skip to main content
14,451,574 members

ATL / WTL / STL

 
QuestionCOM or DCOM? Pin
progDes23-Apr-13 2:17
MemberprogDes23-Apr-13 2:17 
AnswerNeither COM nor DCOM - Use sockets! Pin
Marco Bertschi23-Apr-13 2:48
professionalMarco Bertschi23-Apr-13 2:48 
GeneralRe: Neither COM nor DCOM - Use sockets! Pin
progDes23-Apr-13 2:56
MemberprogDes23-Apr-13 2:56 
GeneralRe: Neither COM nor DCOM - Use sockets! Pin
Marco Bertschi23-Apr-13 3:33
professionalMarco Bertschi23-Apr-13 3:33 
AnswerRe: COM or DCOM? Pin
Jonathan Davies23-Apr-13 3:52
MemberJonathan Davies23-Apr-13 3:52 
AnswerRe: COM or DCOM? Pin
pasztorpisti23-Apr-13 4:21
professionalpasztorpisti23-Apr-13 4:21 
AnswerRe: COM or DCOM? Pin
bkelly1320-May-13 17:19
Memberbkelly1320-May-13 17:19 
AnswerRe: COM or DCOM? Pin
imagiro4-Jul-13 2:51
Memberimagiro4-Jul-13 2:51 
You can use COM objects if you make sure they are automation compatible (have the [oleautomation] attribute and use only automation compatible types in their methods). This will assure that all required marshalling code exists - it will be just like DCOM. There might be other ways (like writing your own marshalling code), but this is a way that will work. You can, of course, also use DCOM.

However, it depends very much on the details of your project, is this is the right way. The advantages are, that COM takes care of everything, like marshalling your data correctly (even between 32/64 bit processes). But also you might run into a lot of things that will be not so easy to solve for unexperienced COM programmers.

There are quite some articles here on CP about IPC, might be worth to take a look there.

In case you want to experiment a bit (and I would strongly suggest that before you decide for a certain solution!) I would suggest WTL (check out http://www.codeproject.com/kb/wtl/ [^]. A series of some very good articles is Michael Dunn's WTL for MFC Programmers). Create a project with the option "Create as COM Server" (will appear in the Application wizard). It will give you an exe project with a UI, that also acts as a COM server. Create two such projects in your solution, add some COM objects and start to play around a bit.
QuestionI have backward compatibility, is the forward compatibility is ensured ? Pin
MrKBA17-Apr-13 7:29
MemberMrKBA17-Apr-13 7:29 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Richard MacCutchan17-Apr-13 10:15
communityengineerRichard MacCutchan17-Apr-13 10:15 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Marco Bertschi23-Apr-13 3:34
professionalMarco Bertschi23-Apr-13 3:34 
QuestionConverting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
ptr_Electron16-Apr-13 20:56
Memberptr_Electron16-Apr-13 20:56 
AnswerRe: Converting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
Richard MacCutchan16-Apr-13 22:10
communityengineerRichard MacCutchan16-Apr-13 22:10 
QuestionHidden window cannot get WM_COPYDATA message? Pin
yihung.hung16-Apr-13 20:26
Memberyihung.hung16-Apr-13 20:26 
AnswerRe: Hidden window cannot get WM_COPYDATA message? Pin
Richard MacCutchan16-Apr-13 22:09
communityengineerRichard MacCutchan16-Apr-13 22:09 
QuestionCoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung1-Apr-13 21:58
Memberyihung.hung1-Apr-13 21:58 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan1-Apr-13 22:32
communityengineerRichard MacCutchan1-Apr-13 22:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung9-Apr-13 20:25
Memberyihung.hung9-Apr-13 20:25 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan9-Apr-13 22:18
communityengineerRichard MacCutchan9-Apr-13 22:18 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 15:32
Memberyihung.hung12-Apr-13 15:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 22:55
communityengineerRichard MacCutchan12-Apr-13 22:55 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 0:32
MemberStephen Hewitt12-Apr-13 0:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 16:31
Memberyihung.hung12-Apr-13 16:31 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 20:11
MemberStephen Hewitt12-Apr-13 20:11 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung13-Apr-13 3:52
Memberyihung.hung13-Apr-13 3:52 

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.