locked
visual c++ 2008 sample code run RRS feed

  • Question

  • Hi,
    I use Visual Studio 2008 professional edition for Visual c++ coding. But the sample code of Visual c++ ( C:\Program Files\Microsoft Visual Studio 9.0\Samples\1033\AllVCLanguageSamples\C++) is not working.
    How it is possible to run these sample code of Visual c++?

    Thanks in advance.
    Friday, January 16, 2009 1:48 AM

Answers

  • A lot of the samples shipped with VC++ 2008 default to the wrong architecture. Try opening a sample solution and in the configuration manager, ensure Win32 is selected rather than x64 or Itanium.

    If this doesn't help, please give a bit more description as to what "not working" means.
    • Proposed as answer by Jon Watte Friday, January 16, 2009 3:04 AM
    • Marked as answer by Rong-Chun Zhang Thursday, January 22, 2009 8:24 AM
    Friday, January 16, 2009 1:58 AM

All replies

  • A lot of the samples shipped with VC++ 2008 default to the wrong architecture. Try opening a sample solution and in the configuration manager, ensure Win32 is selected rather than x64 or Itanium.

    If this doesn't help, please give a bit more description as to what "not working" means.
    • Proposed as answer by Jon Watte Friday, January 16, 2009 3:04 AM
    • Marked as answer by Rong-Chun Zhang Thursday, January 22, 2009 8:24 AM
    Friday, January 16, 2009 1:58 AM
  • What was the error or errors?
    Friday, January 16, 2009 7:49 AM
  • When asking questions and you say something such as "not working" or "doesn't work" it is nearly always necessary to be more specific.
    Sam Hobbs; see my SimpleSamples.Info
    Friday, January 16, 2009 10:02 AM