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

COM

 
QuestionATL COM+, IObjectContext and noncreatable Pin
sameeraperera21-May-06 18:02
sameeraperera21-May-06 18:02 
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 
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

I've inserted the enum in the .idl file both manually, and using attributes: So I have:

File: employee.cpp
#include <oaidl.h>
[ module(dll, name = "TestEmployee", helpstring = "TestEmployee 1.0 Type Library") ];
[ emitidl ];


[dual]
__interface IEmployee : IDispatch
{
[id(1)] HRESULT DoWork(BSTR bstrTask);
};

[export]
enum Status {EMPLOYEED, UNEMPLOYEED} Status_t;


File:employee.idl
...
[
uuid(38884C05-8FF2-3A53-83D3-837E34D61785),
dual
]
#line 27 "c:\\samples\\com\\employee.cpp"
interface IEmployee : IDispatch {
#line 29 "c:\\samples\\com\\employee.cpp"
[id(1)] HRESULT DoWork([in]BSTR bstrTask);
};

#line 33 "c:\\samples\\com\\employee.cpp"
enum Status {
EMPLOYEED = 0,
UNEMPLOYEED = 1,
};


The linker command is:
cl employee.cpp /LD /link /IDLOUT:employee.idl


Am I missing something in the Linker command?


Thanks
Robert Ernst
AnswerRe: Exporting enum types to a COM DLL Pin
Laxman Auti19-May-06 18:17
Laxman Auti19-May-06 18:17 
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 

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.