Click here to Skip to main content
15,901,426 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: ATL & WTL CString problem Pin
Rob Caldecott7-Nov-07 22:04
Rob Caldecott7-Nov-07 22:04 
GeneralRe: ATL & WTL CString problem Pin
Michael Dunn8-Nov-07 21:39
sitebuilderMichael Dunn8-Nov-07 21:39 
Questionneed help !!! ATL UNICODE release mode project settings Pin
alien88885-Nov-07 18:53
alien88885-Nov-07 18:53 
AnswerRe: need help !!! ATL UNICODE release mode project settings Pin
Stuart Dootson5-Nov-07 22:37
professionalStuart Dootson5-Nov-07 22:37 
GeneralRe: need help !!! ATL UNICODE release mode project settings Pin
alien88885-Nov-07 22:56
alien88885-Nov-07 22:56 
GeneralRe: need help !!! ATL UNICODE release mode project settings Pin
Stuart Dootson6-Nov-07 3:24
professionalStuart Dootson6-Nov-07 3:24 
GeneralRe: need help !!! ATL UNICODE release mode project settings Pin
alien88886-Nov-07 22:19
alien88886-Nov-07 22:19 
QuestionCreate Appointments in Outlook 2003 using ATL Pin
samcyp1129-Oct-07 2:15
samcyp1129-Oct-07 2:15 
Hi,
I have successfully created an Outlook add-in project in Visual Studio
2005.
I'm programming in ATL.

I'm wondering how one could create an appointment?

Here's some sample code...

STDMETHODIMP CConnect::OnConnection(IDispatch *pApplication,
AddInDesignerObjects::ext_ConnectMode /*ConnectMode*/, IDispatch
*pAddInInst, SAFEARRAY ** /*custom*/ )
{
pApplication->QueryInterface(__uuidof(IDispatch),
(LPVOID*)&m_pApplication);
pAddInInst->QueryInterface(__uuidof(IDispatch),
(LPVOID*)&m_pAddInInstance);

CComQIPtr <Outlook::_Application> spApp(pApplication);
ATLASSERT(spApp);
m_spApp_Event_New_Mail = m_spApp_Event_Send_Mail = m_spApp = spApp;

//////////////////////// Application
event ////////////////////////////////////

HRESULT hr = NULL;//DispEventAdvise((IDispatch*)spExplorer);

hr =
AppEvents::DispEventAdvise((IDispatch*)m_spApp_Event_Send_Mail,&__uuidof(Outlook::ApplicationEvents));
if(FAILED(hr))
return hr;

hr =
AppEvents_New::DispEventAdvise((IDispatch*)m_spApp_Event_New_Mail ,&__uuidof(Outlook::ApplicationEvents));
if(FAILED(hr))
return hr;

spApp->ActiveExplorer(&m_spApp_Event_Explorer);
hr =
ExpEvents::DispEventAdvise((IDispatch*)m_spApp_Event_Explorer,
&__uuidof(Outlook::ExplorerEvents));
if(FAILED(hr))
return hr;

CComPtr <Outlook::_NameSpace> olNs;
CComQIPtr <Outlook::Recipient> currUser;
CComBSTR bstr_temp("");

CComQIPtr <Outlook::_Application> m_spOutlookApp(pApplication);
ATLASSERT(m_spOutlookApp);
m_spOutlookApp = spApp;
m_spOutlookApp->get_Session(&olNs);

if(olNs == NULL)
return -1;

olNs->get_CurrentUser(&currUser);

currUser->get_Name(&bstr_temp);
CString test1 = CString(bstr_temp);
MessageBox(NULL, test1, "connect", MB_OK);

return S_OK;

}

Thanks!

/Samuel
Questionneed help !!! MMC listview column click event Pin
machoman_VC++28-Oct-07 19:46
machoman_VC++28-Oct-07 19:46 
AnswerRe: need help !!! MMC listview column click event Pin
led mike29-Oct-07 5:01
led mike29-Oct-07 5:01 
GeneralRe: need help !!! MMC listview column click event Pin
machoman_VC++30-Oct-07 23:05
machoman_VC++30-Oct-07 23:05 
QuestionHow to make a listener on a folder, for client-server data synchronization? Pin
Caetano.n.a26-Oct-07 1:57
Caetano.n.a26-Oct-07 1:57 
AnswerRe: how to implement MMC Context menu Pin
Jonathan [Darka]26-Oct-07 0:24
professionalJonathan [Darka]26-Oct-07 0:24 
Questionhow to implement MMC Context menu Pin
Thanks for all the fish24-Oct-07 19:59
Thanks for all the fish24-Oct-07 19:59 
AnswerRe: how to implement MMC Context menu Pin
led mike25-Oct-07 4:35
led mike25-Oct-07 4:35 
Questionplz Help!! hide MMC contextmenu Item Pin
Thanks for all the fish23-Oct-07 2:33
Thanks for all the fish23-Oct-07 2:33 
AnswerRe: plz Help!! hide MMC contextmenu Item Pin
ritz123423-Oct-07 18:40
ritz123423-Oct-07 18:40 
GeneralRe: plz Help!! hide MMC contextmenu Item [modified] Pin
Thanks for all the fish23-Oct-07 21:47
Thanks for all the fish23-Oct-07 21:47 
QuestionHow to monitor ie events via toolbar without mfc Pin
shivditya22-Oct-07 20:20
shivditya22-Oct-07 20:20 
AnswerRe: How to monitor ie events via toolbar without mfc Pin
Stuart Dootson24-Oct-07 2:51
professionalStuart Dootson24-Oct-07 2:51 
QuestionProblems using a chevron for a deskband Pin
Vikhyat Karumanchi22-Oct-07 9:53
Vikhyat Karumanchi22-Oct-07 9:53 
QuestionCOM Using IPicture Interface Pin
Ju@ncho22-Oct-07 8:37
Ju@ncho22-Oct-07 8:37 
AnswerRe: COM Using IPicture Interface Pin
Nathan Holt at EMOM23-Oct-07 7:37
Nathan Holt at EMOM23-Oct-07 7:37 
Questionplz help How to get MMC result view Item index and subitem values(string) [modified] Pin
Thanks for all the fish21-Oct-07 20:06
Thanks for all the fish21-Oct-07 20:06 
AnswerRe: URGENT!!! How to get MMC result view Item index and subitem values(string) Pin
Jonathan [Darka]22-Oct-07 1:07
professionalJonathan [Darka]22-Oct-07 1:07 

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.