Hi

I didn't really want to have a special dialogue to display it in.  I was
just hoping to open it up in a standard text editor...

> -----Original Message-----
> From: Juan Carlos [mailto:[EMAIL PROTECTED] 
> Sent: 19 May 2004 10:56
> To: [EMAIL PROTECTED]
> Subject: Re: [msvc] Viewing an ICS file (text file) with ShellExecute
> 
> 
> 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_b> eginthread.com 
> for subscription changes, and list archive.
> 


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.

Reply via email to