Click here to Skip to main content
15,065,644 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNavigate function of a CWebBrowser class Pin
AnayKulkarni18-Sep-07 19:47
MemberAnayKulkarni18-Sep-07 19:47 
AnswerRe: Navigate function of a CWebBrowser class Pin
nbugalia18-Sep-07 19:58
Membernbugalia18-Sep-07 19:58 
GeneralRe: Navigate function of a CWebBrowser class Pin
AnayKulkarni18-Sep-07 20:06
MemberAnayKulkarni18-Sep-07 20:06 
GeneralRe: Navigate function of a CWebBrowser class Pin
nbugalia18-Sep-07 20:11
Membernbugalia18-Sep-07 20:11 
GeneralRe: Navigate function of a CWebBrowser class Pin
bhogavalli suresh18-Sep-07 23:14
Memberbhogavalli suresh18-Sep-07 23:14 
GeneralRe: Navigate function of a CWebBrowser class Pin
AnayKulkarni19-Sep-07 0:31
MemberAnayKulkarni19-Sep-07 0:31 
AnswerRe: Navigate function of a CWebBrowser class Pin
Sameerkumar Namdeo18-Sep-07 21:31
MemberSameerkumar Namdeo18-Sep-07 21:31 
QuestionBasic issue i got confused help Pin
monsieur_jj18-Sep-07 19:46
Membermonsieur_jj18-Sep-07 19:46 
Hi all,

This code below returns a value either "" or "anything"
however instead or returning "" it returns -1;
BSTR* MapiMessageEntity::GetPropUNICODE(LONG PropertyID)
{
	BSTR* pRetVal;
	
	pRetVal = 0;
	// make sure the requested property's type is unicode
	if ((PROP_TYPE_MASK & PropertyID) != PT_UNICODE)
	{
		return 0;
	}
	// find the property
	redmap::mapi::FoundProperty prop 
		= m_Message->FindProperty(PropertyID);

	if (prop.second)
	{
		pRetVal = reinterpret_cast<BSTR*>(prop.first.lpszW);
		return (pRetVal);
	} 
	else 
	{
		pRetVal = reinterpret_cast<BSTR*>("");
		return (pRetVal);
	}
}

The above function is being called by
strSender = _bstr_t(MapiMessage->GetPropUNICODE(PR_SENDER_NAME_W));


Why does it return "-1" instead of just ""

Thanks,
Jj
AnswerRe: Basic issue i got confused help Pin
nbugalia18-Sep-07 20:06
Membernbugalia18-Sep-07 20:06 
GeneralRe: Basic issue i got confused help Pin
monsieur_jj18-Sep-07 20:11
Membermonsieur_jj18-Sep-07 20:11 
GeneralRe: Basic issue i got confused help Pin
monsieur_jj18-Sep-07 20:42
Membermonsieur_jj18-Sep-07 20:42 
AnswerRe: Basic issue i got confused help Pin
carrivick18-Sep-07 21:43
Membercarrivick18-Sep-07 21:43 
Questionrealloc() crashed!!! help Pin
kcynic18-Sep-07 19:45
Memberkcynic18-Sep-07 19:45 
AnswerRe: realloc() crashed!!! help Pin
KarstenK18-Sep-07 21:25
mveKarstenK18-Sep-07 21:25 
GeneralRe: realloc() crashed!!! help Pin
kcynic18-Sep-07 22:28
Memberkcynic18-Sep-07 22:28 
AnswerRe: realloc() crashed!!! help Pin
toxcct18-Sep-07 23:46
Membertoxcct18-Sep-07 23:46 
Questionwant to develop desktop application like webshot Pin
Dhiraj kumar Saini18-Sep-07 19:45
MemberDhiraj kumar Saini18-Sep-07 19:45 
Questionopen word from button control Pin
p_18-Sep-07 19:43
Memberp_18-Sep-07 19:43 
AnswerRe: open word from button control Pin
Dhiraj kumar Saini18-Sep-07 19:55
MemberDhiraj kumar Saini18-Sep-07 19:55 
AnswerRe: open word from button control Pin
nbugalia18-Sep-07 19:55
Membernbugalia18-Sep-07 19:55 
AnswerRe: open word from button control Pin
p_18-Sep-07 20:01
Memberp_18-Sep-07 20:01 
QuestionFolder Option Pin
Anilkumar K V18-Sep-07 19:26
MemberAnilkumar K V18-Sep-07 19:26 
AnswerRe: Folder Option Pin
nbugalia18-Sep-07 19:34
Membernbugalia18-Sep-07 19:34 
QuestionControls visibility issue Pin
neil478118-Sep-07 12:34
Memberneil478118-Sep-07 12:34 
QuestionRe: Controls visibility issue Pin
Mark Salsbery18-Sep-07 14:03
MemberMark Salsbery18-Sep-07 14:03 

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.