Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OOP Question - Passing Data Between Objects Pin
Andrew Peace21-Oct-01 11:05
Andrew Peace21-Oct-01 11:05 
QuestionTaskbar? Pin
MaTrIX2k220-Oct-01 9:58
MaTrIX2k220-Oct-01 9:58 
AnswerRe: Taskbar? Pin
Michael P Butler20-Oct-01 11:13
Michael P Butler20-Oct-01 11:13 
GeneralRe: Taskbar? Pin
MaTrIX2k220-Oct-01 11:46
MaTrIX2k220-Oct-01 11:46 
GeneralVariables under different class Pin
Kuniva20-Oct-01 6:52
Kuniva20-Oct-01 6:52 
GeneralRe: Variables under different class Pin
Michael P Butler20-Oct-01 11:17
Michael P Butler20-Oct-01 11:17 
GeneralFind a string in a file Pin
Maer72720-Oct-01 3:02
Maer72720-Oct-01 3:02 
GeneralRe: Find a string in a file Pin
NormDroid20-Oct-01 3:28
professionalNormDroid20-Oct-01 3:28 
If your file is a text file which I assume it is, try this...

CStdioFile file;
if (!file.Open("c:\\file.txt", CFile::modeRead))
return;

CString str;
while (file.ReadString(str))
{
if (str.Find("Search String) != -1)
{
TRACE("Found it!");
}
}


Normski - Professional Windows Programmer
GeneralRe: Find a string in a file Pin
Maer72720-Oct-01 3:58
Maer72720-Oct-01 3:58 
GeneralRe: Find a string in a file Pin
NormDroid20-Oct-01 4:02
professionalNormDroid20-Oct-01 4:02 
GeneralRe: Find a string in a file Pin
Maer72720-Oct-01 19:12
Maer72720-Oct-01 19:12 
GeneralPassing Pointers To Function In C++ Pin
AJ12320-Oct-01 2:26
AJ12320-Oct-01 2:26 
GeneralRe: Passing Pointers To Function In C++ Pin
Tim Deveaux20-Oct-01 5:04
Tim Deveaux20-Oct-01 5:04 
General*** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 0:24
Salman Ahmad Khan20-Oct-01 0:24 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
NormDroid20-Oct-01 0:35
professionalNormDroid20-Oct-01 0:35 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 1:10
Salman Ahmad Khan20-Oct-01 1:10 
GeneralRe:First, learn TCP/IP! Pin
Masaaki Onishi20-Oct-01 11:51
Masaaki Onishi20-Oct-01 11:51 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
20-Oct-01 12:38
suss20-Oct-01 12:38 
QuestionFor learning c++, which one will be you choice? Pin
flying20-Oct-01 0:05
flying20-Oct-01 0:05 
AnswerRe: For learning c++, which one will be you choice? Pin
NormDroid20-Oct-01 0:37
professionalNormDroid20-Oct-01 0:37 
GeneralLooking support for c++ in Linux Pin
Gaurav Lambole20-Oct-01 0:01
Gaurav Lambole20-Oct-01 0:01 
GeneralRe: Looking support for c++ in Linux Pin
markkuk21-Oct-01 19:47
markkuk21-Oct-01 19:47 
QuestionHow to destroy Array of Controls Pin
19-Oct-01 21:24
suss19-Oct-01 21:24 
AnswerRe: How to destroy Array of Controls Pin
NormDroid19-Oct-01 23:48
professionalNormDroid19-Oct-01 23:48 
GeneralRe: How to destroy Array of Controls Pin
21-Oct-01 19:10
suss21-Oct-01 19:10 

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.