Hi,
Don't know if I'm missing something but , how about displaying the text file
in a text (or RichEdit) control?
HTH,
Carlos
----- Original Message -----
From: "Truckle, Andrew J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 19, 2004 11:39 AM
Subject: [msvc] Viewing an ICS file (text file) with ShellExecute
> I have a bit of a problem :(
>
> I want the ability to view a text file after a certain process. I added
> this:
>
> // Now write the ICS file
> if( aryPtrObjects.WriteICSFile( m_strFileICS ) )
> {
> if( AfxMessageBox( IDS_STR_ICS_CREATED,
> MB_YESNO|MB_ICONQUESTION ) == IDYES )
> {
> // Show file
> ShellExecute( GetSafeHwnd(),
> _T("open"),
> m_strFileICS,
> m_strFileICS,
> m_strFileICS,
> SW_SHOWNORMAL );
> }
> }
>
> It wasn't working. Nothing was showing up on screen. Then I realised
that
> the filetype is "ICS" which would not be registered as a true file type.
I
> am not in a position to play around with the registry in the
> HKEY_CLASSES_ROOT node. So I need an alternative to open up this
> filename.ics file in the normal text editor.
>
> How can I do it? (apart from renaming the file as .txt) ??
>
> Andrew
>
>
> This email and any attached files are confidential and copyright
protected.
> If you are not the addressee, any dissemination of this communication is
> strictly prohibited. Unless otherwise expressly agreed in writing, nothing
> stated in this communication shall be legally binding.
>
>
>
> _______________________________________________
> msvc mailing list
> [EMAIL PROTECTED]
> See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive
_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription
changes, and list archive.