IDL question
-
This one is for IDL gurus!! Given a structure similar to the following, defined in IDL typedef struct { long something; [string]wchar_t * someotherthing; [string]wchar_t * yetanotherthing; }SOMESTRUCT I need my component to return a collection of SOMESTRUCT structures. (The exact number of SOMESTRUCT structures is not known until runtime) There are two options here 1. Use an open(or whatever) array of SOMESTRUCT structures. Can someone give me the IDL for this? 2. Define IEnumXXX for the SOMESTRUCT structure. Is there some sample code somewhere? thanks Man Learns from History that he never learns from History
-
This one is for IDL gurus!! Given a structure similar to the following, defined in IDL typedef struct { long something; [string]wchar_t * someotherthing; [string]wchar_t * yetanotherthing; }SOMESTRUCT I need my component to return a collection of SOMESTRUCT structures. (The exact number of SOMESTRUCT structures is not known until runtime) There are two options here 1. Use an open(or whatever) array of SOMESTRUCT structures. Can someone give me the IDL for this? 2. Define IEnumXXX for the SOMESTRUCT structure. Is there some sample code somewhere? thanks Man Learns from History that he never learns from History
Go for the first alternative. The syntax is the same as for basic types IIRC. -- Komm tu mir langsam weh, leg mir die Ketten an und zieh die Knoten fest, damit ich lachen kann I blog too now[^]