Click here to Skip to main content
15,890,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compare txt files Pin
densitet13-Sep-05 22:11
densitet13-Sep-05 22:11 
GeneralRe: Compare txt files Pin
densitet13-Sep-05 22:12
densitet13-Sep-05 22:12 
GeneralRe: Compare txt files Pin
gamitech13-Sep-05 9:53
gamitech13-Sep-05 9:53 
GeneralRe: Compare txt files Pin
bugDanny13-Sep-05 11:25
bugDanny13-Sep-05 11:25 
GeneralRe: Compare txt files Pin
densitet14-Sep-05 0:11
densitet14-Sep-05 0:11 
GeneralRe: Compare txt files Pin
David Crow14-Sep-05 2:36
David Crow14-Sep-05 2:36 
GeneralRe: Compare txt files Pin
densitet14-Sep-05 4:38
densitet14-Sep-05 4:38 
GeneralRe: Compare txt files Pin
David Crow14-Sep-05 5:54
David Crow14-Sep-05 5:54 
Too many calls to getline(). Try:

fileusb.open("GUIDs_found.txt", ios::in);
database.open("USBDevices.txt", ios::in);
 
while (! fileusb.eof())
{
    fileusb.getline(data, 500);
    // For debugging, why not set a breakpoint here or use TRACE()?
    // Message boxes just get in the way, not to mention they do not show whitespace.
    AfxMessageBox(data); 
 
    while (! database.eof())
    {
        database.getline(data2, 500);
        AfxMessageBox(data2);
 
        if (strcmp(data, data2) == 0)
        {
            AfxMessageBox("USB registered");
            break;
        }
    }
 
    database.seekg(0, ios::beg);
}

database.close();
fileusb.close();




"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: Compare txt files Pin
bugDanny14-Sep-05 11:04
bugDanny14-Sep-05 11:04 
GeneralRe: Compare txt files Pin
David Crow14-Sep-05 11:06
David Crow14-Sep-05 11:06 
GeneralRe: Compare txt files Pin
bugDanny15-Sep-05 6:44
bugDanny15-Sep-05 6:44 
GeneralRe: Compare txt files Pin
David Crow15-Sep-05 7:08
David Crow15-Sep-05 7:08 
QuestionMFC Application Pin
nss_7513-Sep-05 1:29
sussnss_7513-Sep-05 1:29 
AnswerRe: MFC Application Pin
logicaldna13-Sep-05 1:32
logicaldna13-Sep-05 1:32 
GeneralRe: MFC Application Pin
Anonymous13-Sep-05 17:36
Anonymous13-Sep-05 17:36 
AnswerRe: MFC Application Pin
David Crow13-Sep-05 2:19
David Crow13-Sep-05 2:19 
AnswerRe: MFC Application Pin
John R. Shaw13-Sep-05 5:47
John R. Shaw13-Sep-05 5:47 
Questionadd two functions for a button Pin
meiyueh13-Sep-05 1:08
meiyueh13-Sep-05 1:08 
AnswerRe: add two functions for a button Pin
*Dreamz13-Sep-05 1:26
*Dreamz13-Sep-05 1:26 
Generalbutton settings Pin
meiyueh13-Sep-05 1:48
meiyueh13-Sep-05 1:48 
GeneralRe: button settings Pin
*Dreamz13-Sep-05 2:00
*Dreamz13-Sep-05 2:00 
AnswerRe: add two functions for a button Pin
logicaldna13-Sep-05 1:30
logicaldna13-Sep-05 1:30 
AnswerRe: add two functions for a button Pin
toxcct13-Sep-05 21:27
toxcct13-Sep-05 21:27 
Questioncalculating function time,Interesting Pin
logicaldna13-Sep-05 1:03
logicaldna13-Sep-05 1:03 
AnswerRe: calculating function time,Interesting Pin
Cedric Moonen13-Sep-05 2:11
Cedric Moonen13-Sep-05 2:11 

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.