Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+, Quick question Pin
Alex Korchemniy20-Nov-03 14:48
Alex Korchemniy20-Nov-03 14:48 
GeneralRe: GDI+, Quick question Pin
J. Dunlap20-Nov-03 14:59
J. Dunlap20-Nov-03 14:59 
GeneralRe: GDI+, Quick question Pin
Jörgen Sigvardsson20-Nov-03 22:34
Jörgen Sigvardsson20-Nov-03 22:34 
GeneralRe: GDI+, Quick question Pin
Mike Dimmick21-Nov-03 3:15
Mike Dimmick21-Nov-03 3:15 
GeneralRe: GDI+, Quick question Pin
J. Dunlap20-Nov-03 14:57
J. Dunlap20-Nov-03 14:57 
QuestionHow do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
BaldwinMartin20-Nov-03 14:00
BaldwinMartin20-Nov-03 14:00 
AnswerRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar20-Nov-03 15:02
Peter Molnar20-Nov-03 15:02 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
BaldwinMartin20-Nov-03 15:19
BaldwinMartin20-Nov-03 15:19 
Great stuff Peter! To explain I want to store the mail client information for later use.

Yes I too only have OlExpress but I like it. As for office they want so much for 2003 I went open office.

Seems that HKEY_LOCAL_MACHINE\\SOFTWARE\\Clients\\Mail\\ is the path on the new os's but do you know if it would be good on all 32b os's?

HKEY_CLASSES_ROOT\Microsoft Internet Mail Message\shell\open\command

If I use your idea will that return the complete path or as you said
"%ProgramFiles%\Outlook Express\msimn.exe" /eml:%1

Also Sardaukar wrote in part in his artice "Detect and run the default mail client" codeproject 2002


BOOL GetCmdLine()
{
LONG retval;

retval = Open(HKEY_LOCAL_MACHINE, m_szDefMailClient);
if(retval == NO_ERROR)
{
DWORD cbData = _MAX_PATH;
retval = ReadString(m_szDefMailClient, cbData);
if(retval == NO_ERROR)
{
TCHAR szCmdLine[_MAX_PATH + 1];

lstrcpyn(szCmdLine, _T("SOFTWARE\\Clients\\Mail\\"),
_MAX_PATH + 1);
_tcsncat(szCmdLine, m_szDefMailClient, _MAX_PATH + 1);
_tcsncat(szCmdLine, _T(\\shell\\open\\command),
_MAX_PATH + 1);

RegKey_ rk;
if(rk.Open(HKEY_LOCAL_MACHINE, szCmdLine) == NO_ERROR)
{
retval = rk.ReadString(m_szDefMailCmd, _MAX_PATH);
if(retval == NO_ERROR)
{
return TRUE;
}
}
}
}

return FALSE;
}
Problem it does not work on all os's.


Any idea's??
Smile | :)

Best Wishes,
ez_way
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar20-Nov-03 15:34
Peter Molnar20-Nov-03 15:34 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar20-Nov-03 15:51
Peter Molnar20-Nov-03 15:51 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Anonymous20-Nov-03 16:06
Anonymous20-Nov-03 16:06 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar20-Nov-03 16:13
Peter Molnar20-Nov-03 16:13 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
BaldwinMartin20-Nov-03 19:25
BaldwinMartin20-Nov-03 19:25 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
BaldwinMartin20-Nov-03 19:48
BaldwinMartin20-Nov-03 19:48 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar21-Nov-03 1:12
Peter Molnar21-Nov-03 1:12 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
BaldwinMartin21-Nov-03 8:02
BaldwinMartin21-Nov-03 8:02 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar21-Nov-03 9:28
Peter Molnar21-Nov-03 9:28 
GeneralFunction decorators Pin
Abin20-Nov-03 13:38
Abin20-Nov-03 13:38 
GeneralRe: Function decorators Pin
Terry O'Nolley20-Nov-03 13:50
Terry O'Nolley20-Nov-03 13:50 
GeneralRe: Function decorators Pin
Jörgen Sigvardsson20-Nov-03 14:14
Jörgen Sigvardsson20-Nov-03 14:14 
GeneralRe: Function decorators Pin
Terry O'Nolley20-Nov-03 16:14
Terry O'Nolley20-Nov-03 16:14 
GeneralRe: Function decorators Pin
Michael Dunn20-Nov-03 14:31
sitebuilderMichael Dunn20-Nov-03 14:31 
GeneralThanks to all of you Pin
Abin20-Nov-03 15:51
Abin20-Nov-03 15:51 
GeneralRe: Thanks to all of you Pin
bni77720-Nov-03 17:47
bni77720-Nov-03 17:47 
GeneralWord Automation Pin
Member 54540420-Nov-03 13:27
Member 54540420-Nov-03 13:27 

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.