Why does this code break "IntelliSense"? 
Author Message
 Why does this code break "IntelliSense"?

The following code breaks 'IntelliSense' in VC98 Ent. Edition Sp5.  All the
docs I could find in MSDN said that something wrong with the code breaks
IntelliSense.  Help me understand what is going on.

Thanks.

#include "stdafx.h"
#include<iostream>
#include<fstream>
using namespace std;

int main(int argc, char* argv[]) {
    char ch;
    if (argc == 2) {
        ifstream inFile(argv[1]);
            // at this point 'IntelliSense' works fine.
        while (inFile.get(ch)) {
            // 'IntelliSense is broken now.  It does not break if I use
            // ifstream methodsn other than ifstreamObject.get() like
            // ifstreamObject.getline().
            cout << ch;
        }
    }
    else {
        cout << "no file to open\n";
    }
return 0;

Quote:
}



Wed, 24 Dec 2003 07:03:43 GMT  
 Why does this code break "IntelliSense"?


Quote:
>The following code breaks 'IntelliSense' in VC98 Ent. Edition Sp5.

Intellisense it pretty much pre-broken.  Check out www.wholetomato.com

--
#include <standard.disclaimer>
 _
Kevin D Quitt  USA 91351-4454           96.37% of all statistics are made up
Per the FCA, this email address may not be added to any commercial mail list



Sat, 27 Dec 2003 00:14:43 GMT  
 Why does this code break "IntelliSense"?
Is it possible that

     (inFile.get(ch))

should be

     (inFile.Get(ch))

HTH


Quote:
> The following code breaks 'IntelliSense' in VC98 Ent. Edition Sp5.  All
the
> docs I could find in MSDN said that something wrong with the code breaks
> IntelliSense.  Help me understand what is going on.

> Thanks.

> #include "stdafx.h"
> #include<iostream>
> #include<fstream>
> using namespace std;

> int main(int argc, char* argv[]) {
>     char ch;
>     if (argc == 2) {
>         ifstream inFile(argv[1]);
>             // at this point 'IntelliSense' works fine.
>         while (inFile.get(ch)) {
>             // 'IntelliSense is broken now.  It does not break if I use
>             // ifstream methodsn other than ifstreamObject.get() like
>             // ifstreamObject.getline().
>             cout << ch;
>         }
>     }
>     else {
>         cout << "no file to open\n";
>     }
> return 0;
> }



Sat, 27 Dec 2003 09:50:12 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VC7: Injected "Invoke()" code appears broken

2. Error: "User break called from code.."

3. "MessageBox.Show(" Intellisense hang

4. Broken Rule For "For -- Loop"

5. "Break"

6. Hidden MDI windows "break" Window Menu

7. the "break" keyword

8. why not "cout", "<<" , and "endl"??

9. "Unable to Apply Code Changes", why is "Edit Continue " Feature no long working in VS.NET

10. Why does doing this break my program?

11. remove() vrs fopen("""w")

12. Displaying binary data as ascii "1"'s and "0"'s

 

 
Powered by phpBB® Forum Software