Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionplease: codes in number convert in to words Pin
vansmiles13-Sep-06 17:11
vansmiles13-Sep-06 17:11 
AnswerRe: please: codes in number convert in to words Pin
_AnsHUMAN_ 13-Sep-06 17:20
_AnsHUMAN_ 13-Sep-06 17:20 
AnswerRe: please: codes in number convert in to words Pin
Christian Graus13-Sep-06 19:05
protectorChristian Graus13-Sep-06 19:05 
JokeRe: please: codes in number convert in to words Pin
Steve S13-Sep-06 21:37
Steve S13-Sep-06 21:37 
AnswerRe: please: codes in number convert in to words Pin
Hamid_RT13-Sep-06 19:21
Hamid_RT13-Sep-06 19:21 
AnswerRe: please: codes in number convert in to words Pin
David Crow14-Sep-06 3:31
David Crow14-Sep-06 3:31 
QuestionReading details from outlook address book Pin
Steverty13-Sep-06 15:35
Steverty13-Sep-06 15:35 
AnswerRe: Reading details from outlook address book Pin
_AnsHUMAN_ 13-Sep-06 17:26
_AnsHUMAN_ 13-Sep-06 17:26 
Hi Steverty,
This was a code that we created for some of our application. Use it if it seems useful to you...
_ApplicationPtr pApp;
		_ItemsPtr pItems;
		MAPIFolderPtr pFolder;
		_ContactItemPtr pContact;
		HRESULT hr;
		try
		{
			hr=pApp.CreateInstance(__uuidof(Application));
			if (FAILED(hr))
			{
			MessageBox("Unable to instantiate Outlook.",
			"Outlook Error",MB_OK);
			return 0;
			}
		if (true) //default outlook contacts folder
		{
			pFolder=pApp->GetNamespace(_bstr_t("MAPI"))->
			GetDefaultFolder(olFolderContacts);
			if (pFolder==NULL)
			{
				MessageBox("Could not find default contacts folder.",
				"Outlook Error");
				return 0;
			}

		}
		else 
		{
			pFolder=pApp->GetNamespace(_bstr_t("MAPI"))->PickFolder();
			if (pFolder==NULL)
			return 0;

			if (pFolder->GetDefaultItemType()!=olContactItem)
			{
				MessageBox("Select folder is not a Contact folder.",
				"Outlook Contacts");
				return 0;
			}
		}

		pItems=pFolder->GetItems();
		if (pItems==NULL)
		{
			MessageBox("Unable to get Contact Items.","Outlook Error");
			return 0;
		}

		pContact=pItems->GetFirst();


Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

QuestionJust how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg13-Sep-06 12:25
charlieg13-Sep-06 12:25 
AnswerRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
Gary R. Wheeler13-Sep-06 15:07
Gary R. Wheeler13-Sep-06 15:07 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg13-Sep-06 15:18
charlieg13-Sep-06 15:18 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg13-Sep-06 15:23
charlieg13-Sep-06 15:23 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
Gary R. Wheeler14-Sep-06 1:19
Gary R. Wheeler14-Sep-06 1:19 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg14-Sep-06 1:38
charlieg14-Sep-06 1:38 
AnswerRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
Michael Dunn13-Sep-06 21:18
sitebuilderMichael Dunn13-Sep-06 21:18 
Questionusing *.exe file such az static library Pin
asdf175313-Sep-06 9:25
asdf175313-Sep-06 9:25 
AnswerRe: using *.exe file such az static library Pin
Zac Howland13-Sep-06 9:46
Zac Howland13-Sep-06 9:46 
QuestionOpening a USB keyboard when Windows already has it open? Pin
David Knechtges13-Sep-06 8:29
David Knechtges13-Sep-06 8:29 
QuestionRe: Opening a USB keyboard when Windows already has it open? [modified] Pin
plineaRenade27-Jan-07 10:10
plineaRenade27-Jan-07 10:10 
QuestionMissing Virtual Functions in Properties/Overrides Pin
bob1697213-Sep-06 7:52
bob1697213-Sep-06 7:52 
AnswerRe: Missing Virtual Functions in Properties/Overrides Pin
prasad_som13-Sep-06 19:18
prasad_som13-Sep-06 19:18 
GeneralRe: Missing Virtual Functions in Properties/Overrides Pin
bob1697214-Sep-06 3:21
bob1697214-Sep-06 3:21 
QuestionC++ createProcess wceload on PocketPC [modified] Pin
sMaggi13-Sep-06 6:41
sMaggi13-Sep-06 6:41 
Questionimage as background in ListView Pin
Sigmac13-Sep-06 6:23
Sigmac13-Sep-06 6:23 
AnswerRe: image as background in ListView Pin
Michael Dunn13-Sep-06 7:37
sitebuilderMichael Dunn13-Sep-06 7: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.