Click here to Skip to main content
15,916,042 members
Home / Discussions / COM
   

COM

 
QuestionHow to get CLSID for the underlying object. Pin
cagey2-Aug-02 10:04
cagey2-Aug-02 10:04 
AnswerRe: How to get CLSID for the underlying object. Pin
soptest2-Aug-02 13:17
soptest2-Aug-02 13:17 
GeneralRe: How to get CLSID for the underlying object. Pin
Gertjan Schuurmans4-Aug-02 2:55
Gertjan Schuurmans4-Aug-02 2:55 
GeneralCOM+ Remote Transient Event Subscription Pin
d2hilst2-Aug-02 3:56
d2hilst2-Aug-02 3:56 
QuestionImplemented QueryStatus... but I get idl errors? Pin
Tommy Svensson2-Aug-02 0:23
Tommy Svensson2-Aug-02 0:23 
AnswerRe: Implemented QueryStatus... but I get idl errors? Pin
Vi22-Aug-02 1:22
Vi22-Aug-02 1:22 
GeneralCreating a Typelib Pin
Brigg Thorp1-Aug-02 7:13
Brigg Thorp1-Aug-02 7:13 
GeneralRe: Creating a Typelib Pin
Vi21-Aug-02 19:31
Vi21-Aug-02 19:31 
// IDL source for prj1.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (prj1.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";

[
	uuid(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX), // GUID of your Type Library. Use GUIDGEN.EXE from MS Common\Tools
	version(n.m),                               // Version of your Type Library, e.g. 1.0 
	helpstring("XXXXXXXX")                      // Description of your Type Library
]
library XXXXLib                               // Name of your Type Library
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

typedef [
	uuid(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX), // GUID of your Enum. Use GUIDGEN.EXE from MS Common\Tools
	version(n.m),                               // Version of your Enum, e.g. 1.0 
	helpstring("XXXXXXXX")                      // Description of your Enum
]
enum tagXXXX                                  // Name of your Enum
{
	[helpstring("XXXXXXXX")]                        // Description of your Enum Value
	XXXX = YYYY,                                    // Name and Value (optional as C++) of your Enum Value
//	and so on ...
} XXXX;                                       // Name of your Enum

typedef [
	uuid(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX), // GUID of your Struct. Use GUIDGEN.EXE from MS Common\Tools
	version(n.m),                               // Version of your Struct, e.g. 1.0 
	helpstring("XXXXXXXX")                      // Description of your Struct
]
struct tagXXXX                                // Name of your Struct
{
  // your struct (as C++)
} XXXX;                                       // Name of your Struct

};


It's a template. Rename the XXXX placeholder with your Names and Values.

You can include this IDL-file into your project and create the TLB file. This TLB file can included into DLL (or EXE) as the resource, named "TYPELIB".

This TLB file (both alone or included into other module) must be registered with REGTLIB.EXE or VB itself if you will add this TLB into project's References (Browse button).


With best wishes,
Vita
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:36
sussStanford Powers31-Jul-02 18:36 
General! SPAM ! Pin
soptest1-Aug-02 7:01
soptest1-Aug-02 7:01 
QuestionNow why doesn't this COMPILE!?!?!? Pin
Tommy Svensson31-Jul-02 6:42
Tommy Svensson31-Jul-02 6:42 
AnswerRe: Now why doesn't this COMPILE!?!?!? Pin
soptest31-Jul-02 9:07
soptest31-Jul-02 9:07 
GeneralNeed a starting point Pin
yeeeooowww31-Jul-02 6:18
yeeeooowww31-Jul-02 6:18 
GeneralIDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
tm31-Jul-02 5:34
tm31-Jul-02 5:34 
GeneralRe: IDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
Lily1831-Jul-02 6:14
Lily1831-Jul-02 6:14 
GeneralRe: IDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
tm31-Jul-02 7:35
tm31-Jul-02 7:35 
GeneralCreating a Microsoft Word plugin ! Pin
Maerlin31-Jul-02 5:00
Maerlin31-Jul-02 5:00 
GeneralRe: Creating a Microsoft Word plugin ! Pin
Anonymous31-Jul-02 8:27
Anonymous31-Jul-02 8:27 
QuestionHow to talk to IE Internet Options + misc? Pin
Tommy Svensson31-Jul-02 1:31
Tommy Svensson31-Jul-02 1:31 
QuestionHow can I define packed structure in IDL? Pin
magicast30-Jul-02 22:21
magicast30-Jul-02 22:21 
AnswerRe: How can I define packed structure in IDL? Pin
Mark Janveaux4-Aug-02 20:34
Mark Janveaux4-Aug-02 20:34 
GeneralOLESCRIPT_E_SYNTAX Pin
Roman Nurik30-Jul-02 18:07
Roman Nurik30-Jul-02 18:07 
GeneralATL Problems ??? Ask for help ! Pin
Leesen30-Jul-02 16:06
Leesen30-Jul-02 16:06 
GeneralRe: ATL Problems ??? Ask for help ! Pin
Vi230-Jul-02 20:27
Vi230-Jul-02 20:27 
GeneralRe: ATL Problems ??? Ask for help ! Pin
Leesen31-Jul-02 1:45
Leesen31-Jul-02 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.