Click here to Skip to main content
15,896,408 members
Home / Discussions / COM
   

COM

 
AnswerRe: ATL COM+, IObjectContext and noncreatable Pin
User 21559723-May-06 14:56
User 21559723-May-06 14:56 
QuestionRe: ATL COM+, IObjectContext and noncreatable Pin
sameeraperera23-May-06 17:46
sameeraperera23-May-06 17:46 
Questionmouse messages not going to control's window procedure Pin
allegatoroop20-May-06 10:24
allegatoroop20-May-06 10:24 
QuestionOne domain, block and deny cookies Pin
Sleeper7418-May-06 12:17
Sleeper7418-May-06 12:17 
QuestionExporting enum types to a COM DLL Pin
Robert Ernst18-May-06 9:03
Robert Ernst18-May-06 9:03 
AnswerRe: Exporting enum types to a COM DLL Pin
Laxman Auti18-May-06 19:54
Laxman Auti18-May-06 19:54 
GeneralRe: Exporting enum types to a COM DLL Pin
Robert Ernst19-May-06 6:04
Robert Ernst19-May-06 6:04 
AnswerRe: Exporting enum types to a COM DLL Pin
Laxman Auti19-May-06 18:17
Laxman Auti19-May-06 18:17 
Robert Ernst wrote:
I've tried placing the enum in the .idl file, but the type still doesn't show up in the DLL, based on browsing with the Object Viewer


The following code is generated by the Application wizard of the ATL COM Componenet.
I am simply added the enum inside the code is works fine.
I have tested under VB6.0 and VC++6.0 Object Browser
import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(7CB363A8-69EB-48BE-9E20-BD1B5CC87F76),
		dual,
		helpstring("Itest Interface"),
		pointer_default(unique)
	]
	interface Itest : IDispatch
	{
	};

[
	uuid(8D40959D-E348-4220-971A-61CA27F53C45),
	version(1.0),
	helpstring("test11 1.0 Type Library")
]
library TEST11Lib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(8F71F9BF-8982-4804-A22C-FA3A7E7C225C),
		helpstring("test Class")
	]
	coclass test
	{
		[default] interface Itest;
	};
	typedef enum tagTestEnum
	{
		Bad=0,
		Good=1
	}TestEnum;
};

Hope this code helps you


Knock out 't' from can't,
You can if you think you can
Cool | :cool:
GeneralRe: Exporting enum types to a COM DLL Pin
Robert Ernst20-May-06 13:47
Robert Ernst20-May-06 13:47 
QuestionEXCEPINFO cleanup Pin
jan larsen18-May-06 3:40
jan larsen18-May-06 3:40 
AnswerRe: EXCEPINFO cleanup Pin
NiceNaidu18-May-06 4:02
NiceNaidu18-May-06 4:02 
GeneralRe: EXCEPINFO cleanup Pin
jan larsen18-May-06 8:35
jan larsen18-May-06 8:35 
QuestionEarly Vs Late Binding Pin
NiceNaidu18-May-06 1:43
NiceNaidu18-May-06 1:43 
AnswerRe: Early Vs Late Binding Pin
_AnsHUMAN_ 18-May-06 2:50
_AnsHUMAN_ 18-May-06 2:50 
AnswerRe: Early Vs Late Binding Pin
Laxman Auti18-May-06 2:52
Laxman Auti18-May-06 2:52 
GeneralRe: Early Vs Late Binding Pin
NiceNaidu18-May-06 3:40
NiceNaidu18-May-06 3:40 
QuestionGetting the IHtmlElementRender interface Pin
Anamika200517-May-06 23:45
Anamika200517-May-06 23:45 
AnswerRe: Getting the IHtmlElementRender interface Pin
Laxman Auti18-May-06 0:17
Laxman Auti18-May-06 0:17 
AnswerRe: Getting the IHtmlElementRender interface Pin
_AnsHUMAN_ 20-May-06 0:51
_AnsHUMAN_ 20-May-06 0:51 
Questionwhich files anre needed to include forI HTMLElementRender Pin
Hemant kulkarni17-May-06 23:26
Hemant kulkarni17-May-06 23:26 
AnswerRe: which files anre needed to include forI HTMLElementRender Pin
Laxman Auti17-May-06 23:34
Laxman Auti17-May-06 23:34 
GeneralRe: which files anre needed to include forI HTMLElementRender Pin
Hemant kulkarni17-May-06 23:37
Hemant kulkarni17-May-06 23:37 
GeneralRe: which files anre needed to include forI HTMLElementRender Pin
Laxman Auti17-May-06 23:46
Laxman Auti17-May-06 23:46 
AnswerRe: which files anre needed to include forI HTMLElementRender Pin
Laxman Auti18-May-06 0:04
Laxman Auti18-May-06 0:04 
QuestionATL COM object.. Pin
Siva Sankar Koyi17-May-06 18:38
Siva Sankar Koyi17-May-06 18:38 

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.