Click here to Skip to main content
15,887,746 members
Home / Discussions / COM
   

COM

 
QuestionProblem in adding a new function in existing Interface Pin
Ravikr0716-Sep-07 22:57
Ravikr0716-Sep-07 22:57 
AnswerRe: Problem in adding a new function in existing Interface Pin
Nathan Holt at EMOM17-Sep-07 10:07
Nathan Holt at EMOM17-Sep-07 10:07 
GeneralRe: Problem in adding a new function in existing Interface Pin
Ravikr0717-Sep-07 10:25
Ravikr0717-Sep-07 10:25 
GeneralRe: Problem in adding a new function in existing Interface Pin
Nathan Holt at EMOM17-Sep-07 11:08
Nathan Holt at EMOM17-Sep-07 11:08 
GeneralRe: Problem in adding a new function in existing Interface Pin
Ravikr0717-Sep-07 19:37
Ravikr0717-Sep-07 19:37 
GeneralRe: Problem in adding a new function in existing Interface Pin
Nathan Holt at EMOM18-Sep-07 7:24
Nathan Holt at EMOM18-Sep-07 7:24 
GeneralRe: Problem in adding a new function in existing Interface Pin
paresh_joe26-Sep-07 2:50
paresh_joe26-Sep-07 2:50 
QuestionGetting a ('support_error_info' : attribute not found) error Pin
monsieur_jj16-Sep-07 21:15
monsieur_jj16-Sep-07 21:15 
Here is a snippet of my .h file
[
	coclass,
	noncreatable,
	threading(apartment),
	support_error_info("IAttachment"),
	vi_progid("RMMAPIParserLib.Attachment"),
	progid("RMMAPIParserLib.Attachment.1"),
	version(1.0),
	uuid("32ECA67C-0B5F-4489-B163-85C6CEDDB746"),
	helpstring("Attachment Class")
]

class ATL_NO_VTABLE Attachment : 
	public IAttachment
{
.....
STDMETHOD(GetPropUNICODE)(LONG PropertyID, BSTR* pRetVal);
.....
}


and here is the function

STDMETHODIMP Attachment::GetPropUNICODE(LONG PropertyID, BSTR* pRetVal)
{
	// make sure the requested property's type is unicode
	if ((PROP_TYPE_MASK & PropertyID) != PT_UNICODE)
	{
		return E_FAIL;
	}

	// find the property
	redmap::mapi::FoundProperty prop 
		= m_Attachment->FindProperty(PropertyID);

	if (prop.second)
	{
		// BSTR-convert and return the property value
		ATL::CComBSTR bstr (prop.first.lpszW);
		return bstr.CopyTo(pRetVal);
	} 
	else 
	{
		ATL::CComBSTR bstr (L"");
		return bstr.CopyTo(pRetVal);
	}
}



Now my problem is I am getting the support_error_info error, what is wrong with the code?

Thanks
Jj
AnswerRe: Getting a ('support_error_info' : attribute not found) error Pin
Nathan Holt at EMOM17-Sep-07 10:13
Nathan Holt at EMOM17-Sep-07 10:13 
QuestionAxtiveX, this pointer [modified] Pin
m1m216-Sep-07 10:38
m1m216-Sep-07 10:38 
QuestionCan i use a dll in an activeX component? Pin
just3ala215-Sep-07 10:04
just3ala215-Sep-07 10:04 
AnswerRe: Can i use a dll in an activeX component? Pin
Nathan Holt at EMOM17-Sep-07 10:17
Nathan Holt at EMOM17-Sep-07 10:17 
GeneralRe: Can i use a dll in an activeX component? Pin
just3ala217-Sep-07 12:26
just3ala217-Sep-07 12:26 
QuestionDifference between .idl and .h file? Pin
Ash2014-Sep-07 0:23
Ash2014-Sep-07 0:23 
AnswerRe: Difference between .idl and .h file? Pin
Hubert Mayer14-Sep-07 4:58
Hubert Mayer14-Sep-07 4:58 
QuestionBeginner In COM facing problem Pin
GauranG Shah13-Sep-07 23:21
GauranG Shah13-Sep-07 23:21 
AnswerRe: Beginner In COM facing problem Pin
DevMentor.org16-Sep-07 22:34
DevMentor.org16-Sep-07 22:34 
QuestionFrom where to Start......... ??? Pin
GauranG Shah13-Sep-07 2:36
GauranG Shah13-Sep-07 2:36 
AnswerRe: From where to Start......... ??? Pin
Michael Dunn13-Sep-07 10:08
sitebuilderMichael Dunn13-Sep-07 10:08 
GeneralRe: From where to Start......... ??? Pin
GauranG Shah13-Sep-07 20:23
GauranG Shah13-Sep-07 20:23 
GeneralRe: From where to Start......... ??? Pin
Michael Dunn13-Sep-07 22:15
sitebuilderMichael Dunn13-Sep-07 22:15 
GeneralRe: From where to Start......... ??? Pin
User 21559713-Sep-07 23:37
User 21559713-Sep-07 23:37 
QuestionHow will you talk with Activex or COM(could be created in MFC) From C#? Pin
spalanivel12-Sep-07 21:36
spalanivel12-Sep-07 21:36 
AnswerRe: How will you talk with Activex or COM(could be created in MFC) From C#? Pin
User 21559713-Sep-07 1:08
User 21559713-Sep-07 1:08 
GeneralRe: How will you talk with Activex or COM(could be created in MFC) From C#? Pin
spalanivel13-Sep-07 20:10
spalanivel13-Sep-07 20:10 

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.