Click here to Skip to main content
15,886,095 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 16:49
professionalGarth J Lancaster20-May-13 16:49 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 16:59
bkelly1320-May-13 16:59 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster21-May-13 2:16
professionalGarth J Lancaster21-May-13 2:16 
Questionhow to create own button , which can used on .Net/MFC with ATL/C++ Pin
dev C plus24-Apr-13 0:02
dev C plus24-Apr-13 0:02 
QuestionCOM or DCOM? Pin
progDes23-Apr-13 1:17
progDes23-Apr-13 1:17 
AnswerNeither COM nor DCOM - Use sockets! Pin
Marco Bertschi23-Apr-13 1:48
protectorMarco Bertschi23-Apr-13 1:48 
GeneralRe: Neither COM nor DCOM - Use sockets! Pin
progDes23-Apr-13 1:56
progDes23-Apr-13 1:56 
GeneralRe: Neither COM nor DCOM - Use sockets! Pin
Marco Bertschi23-Apr-13 2:33
protectorMarco Bertschi23-Apr-13 2:33 
AnswerRe: COM or DCOM? Pin
Jonathan Davies23-Apr-13 2:52
Jonathan Davies23-Apr-13 2:52 
AnswerRe: COM or DCOM? Pin
pasztorpisti23-Apr-13 3:21
pasztorpisti23-Apr-13 3:21 
AnswerRe: COM or DCOM? Pin
bkelly1320-May-13 16:19
bkelly1320-May-13 16:19 
AnswerRe: COM or DCOM? Pin
imagiro4-Jul-13 1:51
imagiro4-Jul-13 1: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 6:29
MrKBA17-Apr-13 6:29 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Richard MacCutchan17-Apr-13 9:15
mveRichard MacCutchan17-Apr-13 9:15 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Marco Bertschi23-Apr-13 2:34
protectorMarco Bertschi23-Apr-13 2:34 
QuestionConverting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
ptr_Electron16-Apr-13 19:56
ptr_Electron16-Apr-13 19:56 
AnswerRe: Converting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
Richard MacCutchan16-Apr-13 21:10
mveRichard MacCutchan16-Apr-13 21:10 
QuestionHidden window cannot get WM_COPYDATA message? Pin
yihung.hung16-Apr-13 19:26
yihung.hung16-Apr-13 19:26 
AnswerRe: Hidden window cannot get WM_COPYDATA message? Pin
Richard MacCutchan16-Apr-13 21:09
mveRichard MacCutchan16-Apr-13 21:09 
QuestionCoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung1-Apr-13 20:58
yihung.hung1-Apr-13 20:58 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan1-Apr-13 21:32
mveRichard MacCutchan1-Apr-13 21:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung9-Apr-13 19:25
yihung.hung9-Apr-13 19:25 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan9-Apr-13 21:18
mveRichard MacCutchan9-Apr-13 21:18 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 14:32
yihung.hung12-Apr-13 14:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 21:55
mveRichard MacCutchan12-Apr-13 21:55 

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.