Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m frustrated

Why doesn't the Save the Humans code in Head First C# work under Windows 7 and Visual Studio Express 2013 for Windows Desktop.

I have Windows 7 and Visual Studio Express 2013 for Windows Desktop. After making sure all the code was correct per the WPF Learner's guide to Head First C# I tred the start button in VSE. It built and opened up. However clicking on the start button produced nothing.
So I cleared the project and started from scratch. But this time I cut and pasted the contents of MainWindow.xaml and MainWindow.xaml.cs from the web site posted code into my project. Now have error message the startButton_click is undefined. It suggests I am missing a using directive or an assembly reference.
I also checked the code in all the other files that are built automatically. All of them match up also.
1 person has
this question
+1
Reply
  • Hello Herb,

    I have forwarded your question on to our Book Tech staff, so they can help you find a solution. If you ever have any questions or issues with the content of a title, you can also contact them directly at booktech@oreilly.com or call them at:

    1-800-889-8969
    or
    1-707-827-7019 (outside the USA)
    7:30 am to 5:00 PST

    Best regards,
    Paul Fichera
    Customer Service Representative
    O'Reilly Media
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Hi Herb,

    The PDF that gives the alternative instructions for WPF recommends that you use Visual Studio Express 2012 for Windows Desktop, which you can download from here - http://www.microsoft.com/en-us/downlo...
    That's what the WPF Guide to Head First C# uses.

    Also, have you downloaded the sample code? You can download all of the sample code from here - https://hfcsharp.codeplex.com/SourceC...
    Just click on the Download icon to download all of the sample code, then look in the WPF folder for the WPF sample code.

    I just opened the solution for Save the Humans using Visual Studio Express 2012 for Windows Desktop and built the solution with no problems.

    I hope that helps,
    Chris Olson
    O'Reilly Book Support
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • And why does it not run in the latest release of Visual Studio 2013? The standard Microsoft location for Visual Studio shows no sign of 2012. Only 2013 and 2010.
    It seems I should be learning on the latest version of things.

    Can I run them side by side or will I have completely rebuild my computer to install Visual Studio 2012? No uninstalls of programs as complex as this are NEVER clear. They have track record of completely screwing up my computers.

    Yes I have all the sample code and the WPF code and have completely double checked it.

    This seems like something that is most likely very simple. A missing directive in the using statements. If the author's really know their stuff they should be able to fix this kind of thing quickly.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Hi Herb,

    There are some differences between Visual Studio Express for Windows Desktop 2012 and Visual Studio Express for Windows Desktop 2013 and the 2013 version doesn't work with the "WPF Guide to Head First C# PDF". The Visual Studio Express 2013 release coincided with the release of Windows 8.1.

    Yes, you can run different versions of Visual Studio Express at the same time, without any problems. The one thing you need to keep in mind is if you open a project in a newer version, you might have trouble with it in an older version.

    I hope that helps,
    Chris Olson
    O'Reilly Book Support
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Hello,

    I have problems with this "Save the Humans" project. I built code step by step, like book says, when press start button game starts ( that's ok ), but when I'm trying to drag human into "safe place" he just move to top left corner. And I tried to drag "human" from that corner ( successful ) but when dragging, he is like invisible ( "human" stay in corner, but I'm moving him ) and when drag him on "safe place", the "safe place" move on left side, and I can't keep drag "human" anymore (it's looks like he freezes after one try ). Only can wait to time pass, and appears "GameOver". Also I can drag "human" onto "enemy", but it's same like for moving to "safe place" ( I'm moving "human", but he stays in top left corner like freezed ).
    Can you tell me please what is the problem?
    Thanks in advance!

    P.S Sorry for bad english
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited

  • I’m frustrated
    I have the same problem as Herb. I'm using Windows 10 and VSE 2015. Also the IDE gives zero errors. I don't get it...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated