

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Professor: Fawcett; Class: Distributed Objects; Subject: Computer Engineering; University: Syracuse University; Term: Unknown 1989;
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


[attribute, …] statement name [:BaseInterfaceName] { [attribute, …] statementBlock; };
IDL recognizes the types: boolean, byte, char, double, float, hyper, int, long, short, small, void, wchar_t These may be qualified as signed or unsigned, and you may declare pointers to any of these types.
IDL allows you to import definitions from other IDL files using statements like: import “wtypes.idl” wtypes.idl is a system file that defines many types used in windows and win programming, e.g.: VOID, PVOID, LPVOID, WORD, DWORD, DWORDLONG, LPWORD, BYTE, INT, UINT, SHORT, USHORT, LONG, ULONG TRUE, FALSE, BOOL, BOOLEAN, CHAR, UCHAR, WCHAR, TCHAR, LPSTR, LPWSTR, LPTSTR, LPCWSTR, LPCTSTR, OLECHAR, LPOLESTR, LPCOLESTR, BSTR, LPBSTR, VARIANT DOUBLE, FLOAT, DATE, FILETIME, SYSTEMTIME, SECURITY_ATTRIBUTES, ... GUID, IID, CLSID, REFIID, ...
An IDL declaration looks like a C declaration except that it is embellished with decorations. These are qualifiers of the form: [in], [out], [in,out], [string], [size_is(...)], ... These will be discussed in more detail when we cover strings and arrays.
MIDL runs the C preprocessor prior to compiling IDL statements. That means #include, #define, and #if macros are available in IDL and have the same meaning as in C.