Knowledge Base

INFO: MIDL 1.0 and MIDL 2.0 Full Pointers Do Not Interoperate

Article ID: 115830

Article Last Modified on 1/15/2000


APPLIES TO


This article was previously published under Q115830

SUMMARY

Microsoft Remote Procedure Call (RPC), version 1.0, has minimal support for full pointers, so the version of the MIDL compiler with Microsoft RPC version 1.0 (MIDL 1.0) treats full pointers (specified with the ptr attribute) as unique pointers (specified with the unique attribute).

The MIDL compiler with Microsoft RPC, version 2.0 (MIDL 2.0), supports full pointers. Because of the way Microsoft RPC, version 1.0, handles the on- wire representation of pointers, applications compiled using MIDL 2.0 full pointers cannot operate interactively with applications compiled using MIDL 1.0 full pointers.

The workaround is to recompile the MIDL 2.0 application to use unique pointers.

Keywords: kbinfo kbapi kbrpc kbnetwork KB115830