|
May I recommend you try a corba related newsgroup instead, with emphasis on "newsgroup"?
|
|
|
|
|
I want my application to interface to the user's email client application.
I've currently got this working using MAPI, but, of course, not all email clients use MAPI. On my computer it calls MS Outlook, but my real email application is Netscape.
I've tried PJ Naughters' SMTP class but you have to know what the user's SMTP service is called (e.g. smtp.ozemail.com.au, or whatever) and this actually bypasses their email application.
I've also tried his CMC class, but CMC seems to be an ancient concept that has not continued existence.
My requirement is simply to call the user's email application, supplying the "to" address and an attachment.
Does anyone have any idea how to do this on Windows?
(It's trivial on UNIX).
Russell Robinson (russellr@rootsoftware.com)
Author of TTMaker (Advanced Timetabling Software)
http://www.rootsoftware.com
|
|
|
|
|
To get you started, you can call ShellExecute() on "mailto:person@whatever.com?Subject=Subject here" to open the mail client with a new message.
--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
|
|
|
|
|
Thanks for the suggestion Mike, but there's no way to attach a file with this "mailto" mechanism.
Russell Robinson (russellr@rootsoftware.com)
Author of TTMaker (Advanced Timetabling Software)
http://www.rootsoftware.com
|
|
|
|
|
Yep, sure is. Just use mailto:address@domain.com?attach="your attachment.ext"
Hope that helps,
Andrew.
|
|
|
|
|
Is there any way of specifying the attachment *and* a subject?
Thanks for this excellent tip.
|
|
|
|
|
I tried this using outlook and it worked for setting both subject and attachment.
CString strTemp = _T("C:\\test.txt");
strTemp.Format (_T("mailto:xxx@yyy.com?Subject=My subject\"%s\""),strFilePath);
ShellExecute (NULL, //Parent window
_T("open"), //verb
strTemp,
NULL,//File
NULL,//Parameters
SW_SHOW);
|
|
|
|
|
Hi Andrew,
With Outlook Express 5 I can't get ?attach to do anything - it seems to be ignored. ?subject works fine though.
Do you (or anyone) have any suggestion? I remember trying this a couple of years ago and getting nowhere. It is much better than using MAPI, but I have to be able to specify the attachment.
Cheers, Simon
|
|
|
|
|
Hi Andrew,
Thanks for the response, and I'm sorry that I haven't replied sooner.....been busy fighting other fires.
Unfortunately, the attach parameter doesn't seem to work at all.
I've tried with Outlook Express 5 and Netscape Communicator as email clients. It doesn't work with either.
I can get subject and body parameters to work, but the attach is just ignored.
Also, I haven't found any information anywhere on the net that documents this facility.
RFCs 1738 and 2368 don't mention "attach", though RFC 2368 allows for the possibility of it.
So, it looks like I'm going to have to "do it myself" somehow.
(We are in the 21st century aren't we??????)
Russell Robinson (russellr@rootsoftware.com)
Author of TTMaker (Advanced Timetabling Software)
http://www.rootsoftware.com
|
|
|
|
|
Some image viewer application programs, for example, Adobe Photoshop(http://www.adobe.com/) or
SolidWorks(http://www.solidworks.com) set thumbnail image of a file to its file icon in Explorer so that
the users can know the content of the image file without opening it.
(I do not imply "Thumbnail View" when Explorer is at "Web Page" mode, but customized icon only for a file
in place of the application's general file icon.)
I want to do same thing above in my application program. If anybody know how to set thumbnail image
(custamized icon) to a file icon in place of the application's general file icon in Explorer, please tell me.
-------------------------------
Masahiro Kurosawa
kurosaw@itg.hitachi.co.jp
-------------------------------
|
|
|
|
|
Have a look at the IconPro sample included on the MSDN CD
|
|
|
|
|
|
Thank you for your reply. I think that's what I want to know.
I'm going to see the recommended article in detail.
-------------------------------
Masahiro Kurosawa
kurosaw@itg.hitachi.co.jp
-------------------------------
|
|
|
|
|
At first, I greatly appreciate your advice. I can understand how to customize the icons
and icon handler architecture.
Well, I have another question:
- - -
How to retrieve a handle to an icon from the specified file as we can do same thing from
DLL or EXE using 'ExtractIcon' function ?
- - -
I'm sorry to trouble you so often. If you can find time for me, please tell me the solution
about this.
-------------------------------
Masahiro Kurosawa
kurosaw@itg.hitachi.co.jp
-------------------------------
|
|
|
|
|
How to retrieve a handle to an icon from the specified file as we can do same thing from DLL or EXE using 'ExtractIcon' function?
Sorry, I don't quite understand what you're asking. Is ExtractIcon not working?
--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
|
|
|
|
|
Oh, I apologize to you if my description was not enough.
At first, Visual C++ 6.0 Help reads that ExtractIcon function retrieves a handle to an icon from
the specified executable file, dynamic-link library (DLL), or icon file. Then, I actually try to use
ExtractIcon function for text file (.txt), but ExtractIcon would not work as Help reads.
If there is a way to retrieve a handle to an icon from '.EXE', '.DLL', or '.ICO', I think there is also
a way to do same from '.TXT'.
Should I use IExtractIcon interface like Explorer? If so, I want to know how to use IExtractIcon
interface ( I understand how to implement IExtractIcon interface for Explorer to use thanks to
you ). Or, If there is more easier way like using ExtractIcon for '.EXE', '.DLL', or '.ICO, please instruct
me.
-------------------------------
Masahiro Kurosawa
kurosaw@itg.hitachi.co.jp
-------------------------------
|
|
|
|
|
Ah ok, you want to get the icon that's used for TXT files, right? The way to do that is with SHGetFileInfo(), such as:
SHFILEINFO info;
SHGetFileInfo ( _T("foo.txt"), FILE_ATTRIBUTE_NORMAL, &info, sizeof(SHFILEINFO),
SHGFI_ICON | SHGFI_USEFILEATTRIBUTES );
After that, info.hIcon is the icon. Add SHGFI_SMALLICON to the flags if you want the small (16x16) icon.
--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
|
|
|
|
|
Yes, that's what I want to do. Thank you very much.
Also, I'm coming to understand where I should refer in VC++ Help thanks to
your advices, so I wish to express my appreciation to you again.
Thanks a lot.
Sincerely yours
-------------------------------
Masahiro Kurosawa
kurosaw@itg.hitachi.co.jp
-------------------------------
|
|
|
|
|
|
Hi,
I faced some problem when develop a small Internet reliant application, could you help me to solve them ?
How to use get/put_onsubmit method of interface IHTMLFormElement when hosting a WebBrowser control in an
application ?
How to hosting more than one WebBrowser control in an application, which use same session on the server ? Once the
session is authenticated by first created control, other controls can enlist in the same session.
Thank you.
|
|
|
|
|
Does anybody know how to display a bitmap from memory DC into the SS_BITMAP-style static control ? Where shuld be this memory DC derived from ?
Thanks for suggestion.
Petr Pivonka
|
|
|
|
|
Your memory DC would be a CDC and as a bitmap static gets set with a bitmap, I'd suggest using GetCurrentBitmap to get the bitmap out of the DC and pass into the static.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I'm looking for a C(++) library which would enable me to work
with 32-bit CRC. I would also appreciate some reference to
any theory behind that. Will somebody help me? Thanks.
Marek Svantner
|
|
|
|
|
Take a look at the zlib, this compression library comes with a crc32 algorithm, the link for zlib is:
http://www.info-zip.org/pub/infozip/zlib/
Rui Lopes
|
|
|
|
|
Take a look at http://sourceforge.net/projects/yeasoft/ - In that class library you will find a class for calculating the CRC-32. The related files are yCrc32.h, yCrc32.inl and yCrc32.cpp and you can find them browsing the CVS repository.
|
|
|
|