Last Modification: June 30, 2006

Contents of this FAQ

  1. Why doesn't Visual C++ correctly implement for() loop scooping?
  2. Why is VC not seeing my friend declaration?
  3. How can I control the size (storage requirement) on an enum?
  4. Why is Visual C++ ignoring my header file?
    I'm getting a "Fatal error C1020: unexpected #endif" but I don't understand why. My #ifdef and and #endif statements match just fine.
  5. Why do I get a "LNK2001: unresolved external symbol _main" error or "LNK2001: unresolved external symbol _WinMain" when I try to build my application?
  6. How can I adjust the Cursor position in a Console App? I can't find gotoxy()!
  7. How can I clear the screen in a Console App? I can't find clrscr()!
  8. Is the STL included with VC++ thread-safe?
  9. I upgraded my project to a newer version of VC++, and now I get segmentation faults in a dll that was created with another C++ compiler or VC++ version.
  10. When building my application or dll, I get error LNK1104: cannot open file 'xxx.lib' or error C1083: ‘cannot open include file xxx.h’
  11. The size of my structure is not what I expect it to be