locked
Metro C++ Simple Blog Reader problem

    Question

  • Hello,

    I am looking for some advice on trying to build the Simple Blog Reader C++ metro tutorial.

    I am pretty sure I followed all the tutorial steps up to try to first build the solution on the page below

    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465045

    When I do this I get an error stating that FeedData is not known in file MainPage.xaml.h.

    I checked to see if I had included FeedData.h correctly and had cut and pasted to that file properly. I noticed that it included the definitions within the SimpleBlogReader namespace.

    Now when I put the following line in MainPage.xaml.h I can build properly.

    using namespace SimpleBlogReader;

    I am curious if other people have found this problem and what they did to fix this?

    Is my hack the recommended solution or is there a better one?

    Thanks.

    Thursday, June 28, 2012 9:57 AM

Answers

  • Hi,

    Thanks for the reply.

    In actual fact I moved on from the codebase that I had and resolved this problem.

    I noticed that in some places the namespace was referred to as SimpleBlogReader and in other places as simpleBlogReader.

    I then went back and build the tutorial from scratch and it worked ok.

    I believe my mistake was to name the project simpleBlogReader and not SimpleBlogReader.

    I suppose by doing this I created two different namespaces. One via the project name and the other via the cut and pasted code from the tutorial.

    Friday, June 29, 2012 10:09 AM

All replies

  • Hello,

    Would you please provide us the whole codes to reproduce this issue,

    You can upload your project to skydriver
    http://skydrive.live.com/

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

    On the other hand, you can try to download other sample codes, there is no sample code download for that document. You can try XAML data binding sample
    http://code.msdn.microsoft.com/windowsapps/Data-Binding-7b1d67b5

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, June 29, 2012 7:19 AM
  • Hi,

    Thanks for the reply.

    In actual fact I moved on from the codebase that I had and resolved this problem.

    I noticed that in some places the namespace was referred to as SimpleBlogReader and in other places as simpleBlogReader.

    I then went back and build the tutorial from scratch and it worked ok.

    I believe my mistake was to name the project simpleBlogReader and not SimpleBlogReader.

    I suppose by doing this I created two different namespaces. One via the project name and the other via the cut and pasted code from the tutorial.

    Friday, June 29, 2012 10:09 AM
  • Hi,

    I am a newbie to C++ so this question may appear silly to most of you.

    I have referred the tutorial at: http://msdn.microsoft.com/en-us/library/windows/apps/hh465045.aspx ... Over here, I have completed till the first part of the tutorial. The issue that I am facing is that the tutorial works for me for the atom url mentioned in the example (i.e. http://windowsteamblog.com/windows/b/developers/atom.aspx)...

    However, when I try it for any other atom url, it throws an exception when I try to invoke the client to fetch the feeds (i.e. 

    auto feedOp = client->RetrieveFeedAsync(feedUri); feedOp = client->RetrieveFeedAsync(feedUri);)

    Am I missing anything here?

    Any help would be highly appreciated.

    Regards, Saurabh

    Sunday, July 01, 2012 1:03 PM
  • Hi Saurabh,

    Please check the properties of the class(Feed Item) and then check the data source of your atom pub URI. There may be a chance that your properties are not present in the data source of your atom pub URI.

    Regards,

    Raja KPV


    raja

    Saturday, January 05, 2013 5:58 PM