Click here to Skip to main content
15,908,909 members
Home / Discussions / COM
   

COM

 
GeneralRe: problem in CoCreateInstance() Pin
biswaranjan_rath7-Dec-04 1:28
biswaranjan_rath7-Dec-04 1:28 
GeneralRe: problem in CoCreateInstance() Pin
RChin7-Dec-04 1:33
RChin7-Dec-04 1:33 
GeneralRe: problem in CoCreateInstance() Pin
biswaranjan_rath7-Dec-04 17:27
biswaranjan_rath7-Dec-04 17:27 
GeneralRe: problem in CoCreateInstance() Pin
ThatsAlok7-Dec-04 17:58
ThatsAlok7-Dec-04 17:58 
GeneralCOM programming Pin
Andy Hunter6-Dec-04 6:08
Andy Hunter6-Dec-04 6:08 
GeneralRe: COM programming Pin
User 2155978-Dec-04 4:17
User 2155978-Dec-04 4:17 
GeneralRe: COM programming Pin
Andy Hunter8-Dec-04 10:11
Andy Hunter8-Dec-04 10:11 
QuestionHow to change name of coclass ? Pin
arun14056-Dec-04 2:02
arun14056-Dec-04 2:02 
Hi Folks,

I am writing an Attributed COM component in Visual C++ 7.1. In standard cases, the name of the coclass is the same as the CLASS name. I want to know if it is possible to change the coclass name ?

For instance, in the following code of mine, IDL will be generated with the coclass named as "CMyData". But, I want to have the coclass name as "MyData" without changing the actual class name.

[CODE]
[
object,
uuid("19088A64-4E82-4FD7-A8A5-A9FEE2577FE8"),
dual, helpstring("IMyData Interface"),
pointer_default(unique)
]
__interface IMyData : IDispatch
{
[id(1), helpstring("method MyMethod")] HRESULT MyMethod();
}

[
coclass,
threading("apartment"),
support_error_info("IMyData"),
vi_progid("MyComponent.MyData"),
progid("MyComponent.MyData.1"),
version(1.0),
uuid("4AF80BC4-6A51-4E83-A3A0-9184230CD2AD"),
helpstring("MyData Class")
]
class ATL_NO_VTABLE CMyData : public IMyData
{
public:
CMyData();
virtual CMyData();

DECLARE_PROTECT_FINAL_CONSTRUCT()

HRESULT FinalConstruct()
{
return S_OK;
}

void FinalRelease()
{
}

STDMETHOD(MyMethod)(void);
}
[/CODE]

Any help would be appreciated.

Regards,
Arun.
GeneralAdding Button to Outlook Message Window Pin
lukevandiest3-Dec-04 9:50
lukevandiest3-Dec-04 9:50 
GeneralPassing string array pointer from managed code to unmanaged .COM Pin
Member 8391433-Dec-04 1:04
Member 8391433-Dec-04 1:04 
GeneralVBA method calling from an Object type Pin
RChin3-Dec-04 0:28
RChin3-Dec-04 0:28 
GeneralRe: VBA method calling from an Object type Pin
RChin3-Dec-04 0:40
RChin3-Dec-04 0:40 
GeneralRe: VBA method calling from an Object type Pin
Vi26-Dec-04 3:07
Vi26-Dec-04 3:07 
GeneralRe: VBA method calling from an Object type Pin
RChin7-Dec-04 1:14
RChin7-Dec-04 1:14 
GeneralSAFEARRAY(IDispatch*) problem in matlab Pin
tpndtbk2-Dec-04 5:43
tpndtbk2-Dec-04 5:43 
GeneralRe: SAFEARRAY(IDispatch*) problem in matlab Pin
Anonymous3-Dec-04 0:05
Anonymous3-Dec-04 0:05 
GeneralRe: SAFEARRAY(IDispatch*) problem in matlab Pin
tpndtbk3-Dec-04 2:33
tpndtbk3-Dec-04 2:33 
GeneralExporting Outlook Mailboxes programmatically Pin
Kri52-Dec-04 4:59
Kri52-Dec-04 4:59 
GeneralRe: Exporting Outlook Mailboxes programmatically Pin
perlmunger3-Dec-04 5:05
perlmunger3-Dec-04 5:05 
GeneralSystem.Runtime.InteropServices.SEHException Error Pin
vinesh kara1-Dec-04 20:28
vinesh kara1-Dec-04 20:28 
GeneralATL support to existing MFC application Pin
Ro_land1-Dec-04 19:21
Ro_land1-Dec-04 19:21 
GeneralRe: ATL support to existing MFC application Pin
FearlessBurner2-Dec-04 0:04
FearlessBurner2-Dec-04 0:04 
GeneralRe: ATL support to existing MFC application Pin
FearlessBurner2-Dec-04 2:30
FearlessBurner2-Dec-04 2:30 
GeneralRe: ATL support to existing MFC application Pin
Ro_land2-Dec-04 4:16
Ro_land2-Dec-04 4:16 
GeneralRe: ATL support to existing MFC application : END OF THREAD --> SOLUTION Pin
Ro_land2-Dec-04 11:49
Ro_land2-Dec-04 11:49 

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.