Click here to Skip to main content
15,901,666 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
CPallini15-Oct-08 22:01
mveCPallini15-Oct-08 22:01 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
Rajesh R Subramanian15-Oct-08 22:11
professionalRajesh R Subramanian15-Oct-08 22:11 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
Rajesh R Subramanian15-Oct-08 22:09
professionalRajesh R Subramanian15-Oct-08 22:09 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
CPallini15-Oct-08 22:18
mveCPallini15-Oct-08 22:18 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
Rajesh R Subramanian15-Oct-08 22:25
professionalRajesh R Subramanian15-Oct-08 22:25 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
CPallini15-Oct-08 23:16
mveCPallini15-Oct-08 23:16 
GeneralRe: hi, all, the EDIT have already add ES_PASSWORD, but I want to Input DoubleChar, how to do it? Pin
Rajesh R Subramanian15-Oct-08 23:34
professionalRajesh R Subramanian15-Oct-08 23:34 
QuestionCMimeMessage error please help Pin
monsieur_jj15-Oct-08 16:57
monsieur_jj15-Oct-08 16:57 
Hi all,

I have a project that uses unicode character set this snippet gives me an error:

CMimeMessage msg;
CoInitialize(0);
msg.SetSender(L"Administrator@redmap.com");
msg.SetSenderName(A2T("Redmap Networks"));
msg.AddRecipient(EmailAddress);
strValue = W2A(EmailAddress);

char dom[100]="";
int a = GetDomain(strValue.c_str(), dom);
if (a == 0){
	strValue = dom; 
	msg.SetSubject(A2T("Download Notification"));


The bold part gives me errors and i found them here(atlmime.h):

inline BOOL SetSenderName(LPCTSTR szName, UINT uiCodePage = 0) throw()
	{
		if (szName == NULL)
			return FALSE;

		CHeapPtr<char> szNamePtr;
		UINT nLen(0);

		BOOL bRet = AtlMimeConvertString(m_spMultiLanguage, uiCodePage, szName, &szNamePtr, &nLen);		if (bRet)
		{


It seems that m_spMultiLanguage must be initialized, how do I do that?

I tried calling CoInitialize(0) before feeling up msg it wont work. Any advice?

Thanks,
Jayjay
QuestionRe: CMimeMessage error please help Pin
CPallini15-Oct-08 22:04
mveCPallini15-Oct-08 22:04 
AnswerRe: CMimeMessage error please help Pin
monsieur_jj15-Oct-08 22:08
monsieur_jj15-Oct-08 22:08 
QuestionMFC example Pin
BobInNJ15-Oct-08 14:44
BobInNJ15-Oct-08 14:44 
QuestionRe: MFC example Pin
David Crow15-Oct-08 17:32
David Crow15-Oct-08 17:32 
AnswerRe: MFC example Pin
CPallini15-Oct-08 21:56
mveCPallini15-Oct-08 21:56 
GeneralRe: MFC example Pin
BobInNJ16-Oct-08 4:44
BobInNJ16-Oct-08 4:44 
QuestionEnvironment Variables Pin
jpyp15-Oct-08 11:47
jpyp15-Oct-08 11:47 
AnswerRe: Environment Variables Pin
Mark Salsbery15-Oct-08 13:30
Mark Salsbery15-Oct-08 13:30 
GeneralRe: Environment Variables Pin
jpyp16-Oct-08 8:26
jpyp16-Oct-08 8:26 
GeneralRe: Environment Variables [modified] Pin
Mark Salsbery16-Oct-08 9:11
Mark Salsbery16-Oct-08 9:11 
GeneralRe: Environment Variables Pin
jpyp16-Oct-08 10:15
jpyp16-Oct-08 10:15 
GeneralRe: Environment Variables [modified] Pin
Mark Salsbery16-Oct-08 10:27
Mark Salsbery16-Oct-08 10:27 
GeneralRe: Environment Variables Pin
jpyp16-Oct-08 10:52
jpyp16-Oct-08 10:52 
GeneralRe: Environment Variables Pin
Mark Salsbery16-Oct-08 11:03
Mark Salsbery16-Oct-08 11:03 
QuestionWeird error... Pin
Megidolaon15-Oct-08 11:08
Megidolaon15-Oct-08 11:08 
AnswerRe: Weird error... PinPopular
led mike15-Oct-08 11:32
led mike15-Oct-08 11:32 
GeneralRe: Weird error... Pin
Megidolaon15-Oct-08 11:37
Megidolaon15-Oct-08 11:37 

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.