Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with ActiveX Pin
13-Dec-01 5:38
suss13-Dec-01 5:38 
GeneralRe: Problem with ActiveX Pin
Ernest Laurentin13-Dec-01 5:51
Ernest Laurentin13-Dec-01 5:51 
GeneralRe: Problem with ActiveX Pin
13-Dec-01 6:19
suss13-Dec-01 6:19 
GeneralRe: Problem with ActiveX Pin
14-Dec-01 4:20
suss14-Dec-01 4:20 
GeneralRuntime video Codec chose Pin
12-Dec-01 6:47
suss12-Dec-01 6:47 
GeneralRe: Runtime video Codec chose Pin
Un114-Apr-02 4:22
Un114-Apr-02 4:22 
QuestionHow to tell it's a text file or a rich text file in CRichEditView? Pin
davilism12-Dec-01 6:31
davilism12-Dec-01 6:31 
AnswerRe: How to tell it's a text file or a rich text file in CRichEditView? Pin
Bill Wilson12-Dec-01 12:43
Bill Wilson12-Dec-01 12:43 
rtf files are, of course, text files. There is nothing absolutely definitive. There are some 99.9999% tests you can use.

Here is a sample of an rtf file. (it contains a string of 10 "a" characters. you could check for some of the first chars maybe "{\rtf" would be specific enough and yet general enough for all versions. I don't know if there are files with {\rft0 or {\rtf2.

{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman{\*\falt Times};}{\f55\froman\fcharset238\fprq2 Times New Roman CE{\*\falt Times};}
{\f56\froman\fcharset204\fprq2 Times New Roman Cyr{\*\falt Times};}{\f58\froman\fcharset161\fprq2 Times New Roman Greek{\*\falt Times};}{\f59\froman\fcharset162\fprq2 Times New Roman Tur{\*\falt Times};}
{\f60\froman\fcharset186\fprq2 Times New Roman Baltic{\*\falt Times};}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;
\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{
\nowidctlpar\widctlpar\adjustright \fs20\cgrid \snext0 Normal;}{\*\cs10 \additive Default Paragraph Font;}}{\info{\title sfdsdfsdsdfsdff}{\author WilsonB5}{\operator WilsonB5}{\creatim\yr2001\mo12\dy12\hr15\min41}{\revtim\yr2001\mo12\dy12\hr15\min42}
{\version2}{\edmins0}{\nofpages1}{\nofwords0}{\nofchars0}{\*\company  }{\nofcharsws0}{\vern71}}\widowctrl\ftnbj\aenddoc\formshade\viewkind4\viewscale110\pgbrdrhead\pgbrdrfoot \fet0\sectd \linex0\endnhere\sectdefaultcl {\*\pnseclvl1
\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5
\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang
{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain \nowidctlpar\widctlpar\adjustright \fs20\cgrid {aaaaaaaaaa
\par }}


Hope this helps,
Bill
QuestionInsert property page after pr.-Sheet created? Pin
Thomas Blenkers12-Dec-01 6:25
Thomas Blenkers12-Dec-01 6:25 
AnswerRe: Insert property page after pr.-Sheet created? Pin
Joaquín M López Muñoz12-Dec-01 6:37
Joaquín M López Muñoz12-Dec-01 6:37 
GeneralRe: Insert property page after pr.-Sheet created? Pin
Thomas Blenkers12-Dec-01 10:29
Thomas Blenkers12-Dec-01 10:29 
GeneralRe: Insert property page after pr.-Sheet created? Pin
Joaquín M López Muñoz12-Dec-01 11:42
Joaquín M López Muñoz12-Dec-01 11:42 
GeneralRe: Insert property page after pr.-Sheet created? Pin
Thomas Blenkers14-Dec-01 1:31
Thomas Blenkers14-Dec-01 1:31 
QuestionReading and writing a open CFile with fread fwrite,...? Pin
Patrick Hoffmann12-Dec-01 6:20
Patrick Hoffmann12-Dec-01 6:20 
AnswerRe: Reading and writing a open CFile with fread fwrite,...? Pin
Joaquín M López Muñoz12-Dec-01 6:29
Joaquín M López Muñoz12-Dec-01 6:29 
GeneralCommand Line (cin) Hiding & Counter Using C++ Pin
valikac12-Dec-01 6:13
valikac12-Dec-01 6:13 
GeneralRe: Command Line (cin) Hiding & Counter Using C++ Pin
Joaquín M López Muñoz12-Dec-01 6:24
Joaquín M López Muñoz12-Dec-01 6:24 
GeneralCreateProcess that wont return until program ends Pin
12-Dec-01 5:44
suss12-Dec-01 5:44 
GeneralRe: CreateProcess that wont return until program ends Pin
Joaquín M López Muñoz12-Dec-01 6:10
Joaquín M López Muñoz12-Dec-01 6:10 
GeneralRe: CreateProcess that wont return until program ends Pin
Alvaro Mendez12-Dec-01 6:11
Alvaro Mendez12-Dec-01 6:11 
GeneralRe: CreateProcess that wont return until program ends Pin
Ernest Laurentin12-Dec-01 6:18
Ernest Laurentin12-Dec-01 6:18 
GeneralThank you Pin
12-Dec-01 11:12
suss12-Dec-01 11:12 
GeneralWin32 Bitmap Buttons Pin
Mike Doner12-Dec-01 5:35
Mike Doner12-Dec-01 5:35 
GeneralRe: Win32 Bitmap Buttons Pin
Joaquín M López Muñoz12-Dec-01 6:16
Joaquín M López Muñoz12-Dec-01 6:16 
GeneralRe: Win32 Bitmap Buttons Pin
Tim Deveaux12-Dec-01 8:40
Tim Deveaux12-Dec-01 8:40 

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.