|
Rajesh R Subramanian wrote: Please read these articles:
I think this is a lost cause. If I remember well, he has been suggested to read the articles a couple of times already. Some people still thinkks that it is far more efficient to ask everything on a forum rather to learn something
|
|
|
|
|
So, we cannot help him, can we?
I see the OP has a LOT of reading to do, but if he won't, that would be the least of our interest (besides the fact that he posts the same stuff repeatedly and irritates). We can only suggest him what should he do.
Looks like a lost cause though.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Usually you haven't. CString is a sequence of chars.
What do you exactly need to do (i.e. Be detailed)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
My problem is to set TO address for a mail using Mapi in C++ i able to set BOdy and Subject and from adress iam unable to set TO adresss here is my core Logic
prop.ulPropTag=PR_SUBJECT;
prop.Value.lpszW= _T("this is Subject");
pNewMessage->SetProps(1,&prop,NULL);
prop.ulPropTag=PR_BODY;
prop.Value.lpszW=_T("Body for a application");
pNewMessage->SetProps(1,&prop,NULL);
prop.ulPropTag=PR_SENT_REPRESENTING_NAME;
prop.Value.LPSZ=(TCHAR*)szSenderEmail;
pNewMessage->SetProps(1,&prop,NULL);
//problem here it is not setting the value to TO adress
prop.ulPropTag=PR_DISPLAY_TO;
prop.Value.LPSZ=(TCHAR*)szSenderEmail;
pNewMessage->SetProps(1,&prop,NULL);
Any help is highly appreciated...
|
|
|
|
|
Pardhu_M wrote: prop.ulPropTag=PR_SENT_REPRESENTING_NAME;
prop.Value.LPSZ=(TCHAR*)szSenderEmail;
Pardhu_M wrote: prop.ulPropTag=PR_DISPLAY_TO;
prop.Value.LPSZ=(TCHAR*)szSenderEmail;
Do you need the same email in both cases?
What is failing here and how are you validating the error?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Even iam using two different names even though it is not showing me the to adress.
|
|
|
|
|
Use IMessage::ModifyRecipients - I know that works, 'cause I've used it in the past.
You need to create an address list to pass to that. I've done that using the IAddrBook::ResolveName method to convert textual addresses to MAPI addresses. That part of it's kind of involved, but basically you construct a new ADRLIST with each recipient's name and a property specifying that you want a 'TO' address and pass that to ResolveName. This method should transform the address list into a list of resolved address entries.
HTH!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks Buddy I got an Idea How to Do it
|
|
|
|
|
how to create to parallallu running processes in mfc..please let me know
kir_MFC
|
|
|
|
|
CreateProcess [^], possibly?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all
I am facing a problem while horizontal scrolling.
My class is derived from CScrollView and i am displaying a graph in that class.
While i am dragging the scrollbar and when it reached in the middle, it is returning to the initial position.But there is no problem with scroll to absolute position.
Please help me
Thanks and regards
Deepu
|
|
|
|
|
It's more than likely that your OnHScroll handler's wrong, resetting the scroll bar position after dragging. But it's difficult to tell when you've provided so little information.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I have commented the code inside the OnHScroll.But still it is showing the same result.
|
|
|
|
|
Hi Stuart
Thanks for the repling me.
The nPos parameter of the OnHscrol can handle only 16 bit data.
So when nPos is greater than 32677 it resets to 0.Thats why it was going to the initial posistion.
Using GetScrollInfo function it can be made into 32 bit data.
|
|
|
|
|
Thanks for your feedback!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
how to use semaphores to acheive synchronization..please let me know
kir_MFC
|
|
|
|
|
PLease refer Jeffery Richer or MSDN to get more info about semaphore.
|
|
|
|
|
See, for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
http://www.informit.com/library/content.aspx?b=Visual_C_PlusPlus&seqNum=149
|
|
|
|
|
Hi to all,
I have this doubt,please clear me....
I saw a statement in one program
#define ___allocCon(x,y) new x y;
could anyone please tell me what does this means....I am confused with 2 parameters with new (x and y)...I have never seen this...
Please help me out.
Thanks in advance
HimangshuS
-----------------------------
I am a beginner
|
|
|
|
|
try to see where ___allocCon is used in that program.
you may get some clue.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
they have used like this
ACE_Message_Block * pMsg = ___allocCon(ACE_Message_Block,(sizeof(void*),xxx ));
ACE_Message_Block is a message block data types for ace framework....and xxx is define as
#define yyy 8000
#define xxx (yyy +1)
please give some light on it
-----------------------------
I am a beginner
|
|
|
|
|
himangshuS wrote: ACE_Message_Block * pMsg = ___allocCon(ACE_Message_Block,(sizeof(void*),xxx ));
before compilation, the above would be expanded as
ACE_Message_Block * pMsg = new ACE_Message_Block sizeof (void*) 8001.
but still i have some confusion on the ',' used after size of.
hope somebody may answer it in better.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
There is a placement new operator which takes 2 parameters.
But it's called differently.
It is declared as void* operator new(size_t size, void* ptr);
It is called as new(ptr) ClassName;
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|