To Configure yahoo in Outlook, we have to download
yPOPS application and install and run this application then configure the yahoo with outlook with the following :
To Configure yahoo in Outlook, we have to download
yPOPS application and install and run this application then configure the yahoo with outlook with the following :
Error 1:
---------------------------
Microsoft Outlook
---------------------------
Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client.
---------------------------
OK
---------------------------
When trying to send an email you get an error message "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run MS Outlook and set it as the default mail client." RESOLUTION:
Install MS Outlook (not Outlook Express). Quit all mail-aware programs. This includes any MS Office programs and follow these steps to set Outlook as your default e-mail program:
Solution :
----------------
Start MS Internet Explorer version 5.0 or later.
On the "Tools" menu, click "Internet Options".
On the "Programs" tab, in the "E-mail" list, click to select "Microsoft Outlook". Do not click "Outlook Express".
Click "OK".
Error 2:
I developed the sample application with the MAPISendMail () fn in VC++.
MAPISendMail() fn succeeded But I got the mail in the Outlook's OutBox folder.But the mail is not sent to the specified email Id...
I enabled the "Forwarding and Pop" -> Enable POP access option from the
4.20 to 5.30 - I faced the above problem.
Set of Steps Taken :
1.So I set the status of the Firewall as "Allow All". Now also I got the problem that is message sent to the Outbox folder. So there is no problem with firewall.
2. I manually sent the mail from Outlook. It is also not working . It sends data to the Outbox folder. This is the cause of the problem. First set the mail settings properly in outlook Express.
I solved this problem By doing the following things:
1.By Enabling My Server Requires authentication
Moreover I have opened the Microsoft outlook and checks whether the MAPISendMail() fn works well …
MAPISendMail() fn failed with Outlook.
MAPISendMail() returns MAPI_E_FAILURE ( return code : 2) , if I opened the outlook.
So I opened the Outlook Express and tested the MAPISendMail() fn , it works well …
Tools ->accounts select the account name
Gmail Settings in Outlook Express:
Run the MAPI only when Outlook Express is Opened…
VC++ COM interface in a DLL :
-------------------------------
interface IModuleConfig
{
HRESULT SetValue(
const GUID* pParamID, VARIANT* pValue);};
DLL component Id is
9C9A2859-C76B-4205-A52A-3ADBA54458B7.DLL component implements this interface...
C# code :
I created the instance for the DLL component as follows :
[
ComImport, Guid ("9C9A2859-C76B-4205-A52A-3ADBA54458B7")] public class DLLComponent{
}
This is like defining the CLSID in VC++...
How to create an instance for the specified Guid ?
Type t = typeof(DLLComponent);
DLLComponent dllComponent;
dllComponent = Activator.CreateInstance(t);
How to Query the interface from the DLL component Instance ?
IModuleConfig config = null;
config = dllComponent as IModuleConfig;
or
config = (IModuleConfig) dllComponent;
But we have to declare the IModuleConfig interface in the C# as follows ;
[
ComImport, System.Security.SuppressUnmanagedCodeSecurity , Guid("486F726E-4D43-49b9-8A0C-C22A2B0524E8" ), InterfaceType(ComInterfaceType .InterfaceIsIUnknown)] public interface IModuleConfig{
[PreserveSig] int SetValue([In , MarshalAs(UnmanagedType .LPStruct)]Guid guid, ref Object obj);}
Afterwards we can call the interface method using its object with dot operator...
IModuleConfig config = null;
config = dllComponent as IModuleConfig;
config.SetValue(guid, ref obj);
Now it is working well.
Wrong code:
==============
Previously I defined the C# interface as follows :
[
ComImport, System.Security.SuppressUnmanagedCodeSecurity , Guid("486F726E-4D43-49b9-8A0C-C22A2B0524E8" ), InterfaceType(ComInterfaceType .InterfaceIsIUnknown)] public interface IModuleConfig{
[PreserveSig] int SetValue([In , MarshalAs(UnmanagedType .LPStruct)]Guid guid,[In , MarshalAs(UnmanagedType .AsAny) ref Object obj);}
I got the exception as follows, we can't use the "UnmanagedType
.AsAny" ref types and Array with offset parameters.I thank verymuch to muthu pandi anna for helping me to solve this problem.
I worked with horizontal slider control in MFC.
I added the following message :
ON_WM_HSCROLL() added it within BEGIN_MESSAGE () macro.next I added the fn like
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) ;while using Slider control, the SCROLL message is posted...
There are two main notification codes are available.
That are
TB_THUMBTRACK
//Slider movement (the user dragged the slider)TB_THUMBPOSITION
//WM_LBUTTONUP following a TB_THUMBTRACK notification messagevoid MFCDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
CSliderCtrl * pControl = (CSliderCtrl*) pScrollBar);
switch(nSBCode){
case TB_THUMBTRACK://Slider movement (the user dragged the slider){
break;}
case TB_THUMBPOSITION:{
//WM_LBUTTONUP following a TB_THUMBTRACK notification message //StopTimer(); break;}
}
}