- ccomthread_src.zip
- LegacyCOMObject1
- Shared
- SimpleCOMObject1
- SimpleCOMObject2
- Test Programs
- VBTest
- VCTests
- DemonstrateDefaultSTA
- VCTest01
- main.cpp
- SimpleCOMObject2.tlh
- SimpleCOMObject2.tli
- VCTest01.dsp
- VCTest01.dsw
- VCTest02
- main.cpp
- SimpleCOMObject2.tlh
- SimpleCOMObject2.tli
- VCTest02.dsp
- VCTest02.dsw
- DemonstrateExeServerSTA
- Client
- VCTest01
- Implementation
- ExeServerImpl
- Interface
- ExeServerInterfaces
- DemonstrateLegacySTA
- VCTest01
- LegacyCOMObject1.tlh
- LegacyCOMObject1.tli
- main.cpp
- VCTest01.dsp
- VCTest01.dsw
- VCTest02
- DemonstrateNoMessageLoop
- VCTest01
- main.cpp
- SimpleCOMObject2.tlh
- SimpleCOMObject2.tli
- VCTest01.dsp
- VCTest01.dsw
- DemonstrateSTA
- VCTest01
- main.cpp
- SimpleCOMObject2.tlh
- SimpleCOMObject2.tli
- VCTest01.dsp
- VCTest01.dsw
|
// SimpleCOMObject1.idl : IDL source for SimpleCOMObject1.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (SimpleCOMObject1.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(96A34C8B-E166-41EB-A390-9F9845F40D9F),
dual,
helpstring("ISimpleCOMObject1 Interface"),
pointer_default(unique)
]
interface ISimpleCOMObject1 : IDispatch
{
[id(1), helpstring("method Initialize")] HRESULT Initialize();
[id(2), helpstring("method Uninitialize")] HRESULT Uninitialize();
[id(3), helpstring("method DoLengthyFunction")] HRESULT DoLengthyFunction([in] long lTimeout);
};
[
uuid(5F12C0E4-FB47-4FAF-8EAF-5C733637698E),
version(1.0),
helpstring("SimpleCOMObject1 1.0 Type Library")
]
library SIMPLECOMOBJECT1Lib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(8B88E59A-4BB7-4DBC-819A-2E682845A4AE),
helpstring("_ISimpleCOMObject1Events Interface")
]
dispinterface _ISimpleCOMObject1Events
{
properties:
methods:
[id(1), helpstring("method LengthyFunctionCompleted")] HRESULT LengthyFunctionCompleted([in] long lStatus);
};
[
uuid(11EF2E3F-9887-4530-8EE0-D8A57D69653A),
helpstring("SimpleCOMObject1 Class")
]
coclass SimpleCOMObject1
{
[default] interface ISimpleCOMObject1;
[default, source] dispinterface _ISimpleCOMObject1Events;
};
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Lim Bio Liong is a Specialist at a leading Software House in Singapore.
Bio has been in software development for over 10 years. He specialises in C/C++ programming and Windows software development.
Bio has also done device-driver development and enjoys low-level programming. Bio has recently picked up C# programming and has been researching in this area.