Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 8:24
professionalAlbert Holguin30-Nov-11 8:24 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 8:27
AndrewG123130-Nov-11 8:27 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 8:28
professionalAlbert Holguin30-Nov-11 8:28 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 8:27
professionalAlbert Holguin30-Nov-11 8:27 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Richard MacCutchan30-Nov-11 7:24
mveRichard MacCutchan30-Nov-11 7:24 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 7:54
AndrewG123130-Nov-11 7:54 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Richard MacCutchan30-Nov-11 8:40
mveRichard MacCutchan30-Nov-11 8:40 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Chuck O'Toole30-Nov-11 8:27
Chuck O'Toole30-Nov-11 8:27 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 8:53
AndrewG123130-Nov-11 8:53 
QuestionRe: Using a member from the view class of an mfc program in a dialog box Pin
David Crow30-Nov-11 8:47
David Crow30-Nov-11 8:47 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 9:00
AndrewG123130-Nov-11 9:00 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
David Crow30-Nov-11 9:35
David Crow30-Nov-11 9:35 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG12311-Dec-11 9:25
AndrewG12311-Dec-11 9:25 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
JackDingler5-Dec-11 9:38
JackDingler5-Dec-11 9:38 
QuestionRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG12316-Dec-11 11:49
AndrewG12316-Dec-11 11:49 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
JackDingler6-Dec-11 13:16
JackDingler6-Dec-11 13:16 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
JackDingler6-Dec-11 13:41
JackDingler6-Dec-11 13:41 
QuestionHow to use SYSTEM function for specified time Pin
MKC00230-Nov-11 6:37
MKC00230-Nov-11 6:37 
AnswerRe: How to use SYSTEM function for specified time Pin
Software_Developer30-Nov-11 7:20
Software_Developer30-Nov-11 7:20 
QuestionRe: How to use SYSTEM function for specified time Pin
Richard MacCutchan30-Nov-11 7:29
mveRichard MacCutchan30-Nov-11 7:29 
AnswerRe: How to use SYSTEM function for specified time Pin
MKC00230-Nov-11 17:28
MKC00230-Nov-11 17:28 
GeneralRe: How to use SYSTEM function for specified time Pin
Richard MacCutchan30-Nov-11 22:06
mveRichard MacCutchan30-Nov-11 22:06 
GeneralRe: How to use SYSTEM function for specified time Pin
MKC0021-Dec-11 18:17
MKC0021-Dec-11 18:17 
GeneralRe: How to use SYSTEM function for specified time Pin
Richard MacCutchan1-Dec-11 22:49
mveRichard MacCutchan1-Dec-11 22:49 
Questiontrying to find the status of contacts from Office Communicator Pin
tasumisra30-Nov-11 4:33
tasumisra30-Nov-11 4:33 
Hi Guys,

I am trying to find status of may contacts but not able to find appropriate function

here is the sample for that
#include <windows.h>
#include <tchar.h>
#include "c:\program files\Microsoft Office Communicator\SDK\msgrua.h"

const GUID IID_IMessenger =
{0xD50C3186,0x0F89,0x48f8,{0xB2,0x04,0x36,0x04,0x62,0x9D,0xEE,0x10}};

const GUID CLSID_Messenger =
{0x8885370D,0xB33E,0x44b7,{0x87,0x5D,0x28,0xE4,0x03,0xCF,0x92,0x70}};

const GUID IID_MessengerContacts =
{0xE7479A0F,0xBB19,0x44a5,{0x96,0x8F,0x6F,0x41,0xD9,0x3E,0xE0,0xBC}};

IMessenger* m_pIMessenger;
int _tmain(int argc, _TCHAR* argv[])
{
	CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
	HRESULT  hr = CoCreateInstance(CLSID_Messenger,NULL,CLSCTX_LOCAL_SERVER,
	IID_IMessenger, (LPVOID *)&m_pIMessenger);

	BSTR myName;
	MISTATUS sMyStatus;

	hr = m_pIMessenger->get_MyFriendlyName(&myName);
	hr = m_pIMessenger->get_MyStatus(&sMyStatus);

	BSTR serviceId;
	m_pIMessenger->get_MyServiceId(&serviceId);

	IDispatch *pContacts;
	IMessengerContacts *pCon;

	m_pIMessenger->get_MyContacts(&pContacts);
	pContacts->QueryInterface(__uuidof(IMessengerContacts),(void**)&pCon);
	
	IDispatch *pDispatch;

	hr=pCon->Item(1,&pDispatch);
	long lCount=0;
	pCon->get_Count(&lCount);

        //here lCount is total number of contacts 
        //now i am not getting appropriate method to iterate through
	CoUninitialize();

	return 0;
}



Please help me in finding appropriate function to get information about each contact.
vikas da

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.