Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
StructDemo.idl
Package: code_and_note_of_COM.rar [view]
Upload User: weisheen
Upload Date: 2022-07-09
Package Size: 19390k
Code Size: 1k
Category:
ActiveX-DCOM-ATL
Development Platform:
Visual C++
- // StructDemo.idl : IDL source for StructDemo.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (StructDemo.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- typedef struct StPerson
- {
- BSTR name;
- UINT age;
- BSTR sex;
- }StPerson;
- [
- object,
- uuid(4FB1A9EF-DBC7-498F-824D-1FEACA15E5A9),
- dual,
- helpstring("IMyStruct Interface"),
- pointer_default(unique)
- ]
- interface IMyStruct : IDispatch
- {
- [id(1),helpstring("adf")] HRESULT GetPersonById([in] UINT id,[out] StPerson** Result);
- [id(2),helpstring("adf")] HRESULT GetAllPerson([out] UINT* number,[out] StPerson** Result);
- };
- [
- uuid(143A3C7E-F406-458E-AD4D-BFB99743D777),
- version(1.0),
- helpstring("StructDemo 1.0 Type Library")
- ]
- library STRUCTDEMOLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(0C704694-9121-496F-B635-FD4B3BAD4C53),
- helpstring("MyStruct Class")
- ]
- coclass MyStruct
- {
- [default] interface IMyStruct;
- };
- };