title: "COM Architecture: Interface Marshaling, IDispatch interface"
description: "COM Architecture: Interface Marshaling, IDispatch interface"
cleanUrl: /sw-engineer/com-architecture-interface-marshaling-idispatch
ogImage: "<https://anyflower.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F7570d2fc-66b1-4e23-bb3c-ff7b56842b0d%2F4ca74109-bd77-4359-9a94-12d4277bbd81%2FUntitled.png?table=block&id=017ba85b-84da-4f66-9aab-e33e9e7ec9a5&spaceId=7570d2fc-66b1-4e23-bb3c-ff7b56842b0d&width=840&userId=&cache=v2>"
floatFirstTOC: right

Interface Marshaling

marshaling의 개념

COM 서버는 위치 투명성을 지원한다. 즉 COM 클라이언트와 동일 프로세스 내에 있던(in-process server), 동일 머신 타 프로세스로 존재하던지(out-of-process server), remote 머신에 있건(remote server) 상관하지 않는다. 이는 각기 다른 매커니즘을 통한 데이터 통신을 동일한 인터페이스로 이룰 수 있도록 해야한다는 이야기. marshaling은 위의 세 경우 중 프로세스 경계를 넘어 데이터를 전송하는 out-of-process server, remote server를 위한 데이터 전송 매커니즘이다.

marshaling의 종류

IDispatch inteface

Untitled

Type Library

Untitled