Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan anybody tell me how to create a gantt chart in vc++ Pin
philiptabraham16-Sep-07 21:50
philiptabraham16-Sep-07 21:50 
AnswerRe: can anybody tell me how to create a gantt chart in vc++ Pin
chandu00416-Sep-07 22:02
chandu00416-Sep-07 22:02 
GeneralRe: can anybody tell me how to create a gantt chart in vc++ Pin
Cedric Moonen16-Sep-07 22:04
Cedric Moonen16-Sep-07 22:04 
GeneralRe: can anybody tell me how to create a gantt chart in vc++ Pin
chandu00416-Sep-07 22:08
chandu00416-Sep-07 22:08 
GeneralRe: can anybody tell me how to create a gantt chart in vc++ Pin
Cedric Moonen16-Sep-07 22:16
Cedric Moonen16-Sep-07 22:16 
Generalthank you. Pin
chandu00416-Sep-07 22:19
chandu00416-Sep-07 22:19 
AnswerRe: can anybody tell me how to create a gantt chart in vc++ Pin
Cedric Moonen16-Sep-07 22:06
Cedric Moonen16-Sep-07 22:06 
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
QuestionHow to Convert WCHAR to BYTE Pin
GauranG Shah16-Sep-07 21:06
GauranG Shah16-Sep-07 21:06 
AnswerRe: How to Convert WCHAR to BYTE Pin
Roger Broomfield16-Sep-07 21:52
Roger Broomfield16-Sep-07 21:52 
GeneralRe: How to Convert WCHAR to BYTE Pin
GauranG Shah16-Sep-07 22:33
GauranG Shah16-Sep-07 22:33 
AnswerRe: How to Convert WCHAR to BYTE Pin
Michael Dunn16-Sep-07 22:28
sitebuilderMichael Dunn16-Sep-07 22:28 
Questionwant to add a hyperlink on a dialog box as a text Pin
Dhiraj kumar Saini16-Sep-07 20:40
Dhiraj kumar Saini16-Sep-07 20:40 
AnswerRe: want to add a hyperlink on a dialog box as a text Pin
baerten16-Sep-07 21:03
baerten16-Sep-07 21:03 
AnswerRe: want to add a hyperlink on a dialog box as a text Pin
Hamid_RT16-Sep-07 22:02
Hamid_RT16-Sep-07 22:02 
AnswerRe: want to add a hyperlink on a dialog box as a text Pin
Michael Dunn16-Sep-07 22:30
sitebuilderMichael Dunn16-Sep-07 22:30 
Questionhow to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
Dhiraj kumar Saini16-Sep-07 20:36
Dhiraj kumar Saini16-Sep-07 20:36 
AnswerRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
baerten16-Sep-07 21:01
baerten16-Sep-07 21:01 
GeneralRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
Dhiraj kumar Saini16-Sep-07 21:13
Dhiraj kumar Saini16-Sep-07 21:13 
AnswerRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
GauranG Shah16-Sep-07 21:24
GauranG Shah16-Sep-07 21:24 
GeneralRe: how to open Internet Explorer on click of a menu item in a dialog based mfc app Pin
Iain Clarke, Warrior Programmer17-Sep-07 2:55
Iain Clarke, Warrior Programmer17-Sep-07 2:55 
Questionstruct definition Pin
Waldermort16-Sep-07 20:03
Waldermort16-Sep-07 20:03 
AnswerRe: struct definition Pin
Michael Dunn16-Sep-07 20:20
sitebuilderMichael Dunn16-Sep-07 20:20 
GeneralRe: struct definition Pin
Waldermort17-Sep-07 2:03
Waldermort17-Sep-07 2:03 
GeneralRe: struct definition Pin
Iain Clarke, Warrior Programmer17-Sep-07 4:20
Iain Clarke, Warrior Programmer17-Sep-07 4:20 

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.