Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 2:09
George_George24-Mar-08 2:09 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 2:31
James R. Twine24-Mar-08 2:31 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 2:51
George_George24-Mar-08 2:51 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 3:10
James R. Twine24-Mar-08 3:10 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 4:35
George_George24-Mar-08 4:35 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 4:46
James R. Twine24-Mar-08 4:46 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 19:19
George_George24-Mar-08 19:19 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 23:46
James R. Twine24-Mar-08 23:46 
   Simply, marshalling is the packaging of data so that it can be serialized/transported in an independent format.  For example, you cannot (normally) pass memory directly between two applications, as each runs in its own address space.  So one way is to write the data to a file, and then have the other applicatoin pick-up that file.  The file is used as a way to marshall data between the two processes.  The same thing happens when you use functions like htonl(...) and ntohl(...) in Winsock.

   Marhsalling in COM is basically the same thing.  It is a way to convert the standard Marshall-able data types (String/BSTR, 32-bit integers, characters, etc.) so that they can be passed between processes (even across the network), and reconstituted into the actual data.

   Nornally, marshalling is limited to certain data types, called the automation-capable data types, or Marshall-able types.  You can expand on this by writing your own marhsalling code so you can then support marhalling of more complex types between interfaces.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



GeneralRe: C++ COM STA model Pin
George_George25-Mar-08 4:24
George_George25-Mar-08 4:24 
GeneralRe: C++ COM STA model Pin
James R. Twine25-Mar-08 6:19
James R. Twine25-Mar-08 6:19 
GeneralRe: C++ COM STA model Pin
George_George25-Mar-08 20:15
George_George25-Mar-08 20:15 
GeneralRe: C++ COM STA model Pin
James R. Twine26-Mar-08 1:40
James R. Twine26-Mar-08 1:40 
GeneralRe: C++ COM STA model Pin
George_George26-Mar-08 1:51
George_George26-Mar-08 1:51 
GeneralRe: C++ COM STA model Pin
Nemanja Trifunovic24-Mar-08 8:00
Nemanja Trifunovic24-Mar-08 8:00 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 18:51
George_George24-Mar-08 18:51 
Generalafxwin.h Pin
specialhaha23-Mar-08 22:22
specialhaha23-Mar-08 22:22 
QuestionRe: afxwin.h Pin
CPallini23-Mar-08 22:44
mveCPallini23-Mar-08 22:44 
GeneralRe: afxwin.h Pin
specialhaha23-Mar-08 22:46
specialhaha23-Mar-08 22:46 
GeneralRe: afxwin.h Pin
David Crow24-Mar-08 4:11
David Crow24-Mar-08 4:11 
AnswerRe: afxwin.h Pin
Paresh Chitte23-Mar-08 23:22
Paresh Chitte23-Mar-08 23:22 
Question"Spin Control" and disable left and right arrows separately Pin
Dmytro Skrypnyk23-Mar-08 21:48
Dmytro Skrypnyk23-Mar-08 21:48 
GeneralRe: "Spin Control" and disable left and right arrows separately Pin
rp_suman24-Mar-08 1:04
rp_suman24-Mar-08 1:04 
GeneralUsing DLL file in own code Pin
r0wdy23-Mar-08 20:20
r0wdy23-Mar-08 20:20 
GeneralRe: Using DLL file in own code Pin
CPallini23-Mar-08 22:40
mveCPallini23-Mar-08 22:40 
GeneralCall constructor Pin
George_George23-Mar-08 20:09
George_George23-Mar-08 20:09 

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.