Windows::Foundation::Collections::begin / end methods don't appear to exist
-
Thursday, May 10, 2012 3:58 PM
I'm trying to follow a baic MSDN example for FindPackages on the package manager but the example using 'begin' and 'end' in the Windows::Foundation:Collections namespace and I can't find it. There are many other methods on this namespace, just not 'begin' and 'end'.
Does anyone have any suggestions where I may be going wrong...?
The MSDN example code is at:
All Replies
-
Friday, May 11, 2012 7:58 AMModerator
Excuse me, can you help us clarify your question, I got no "begin" and "end" string in a method name in this page: http://msdn.microsoft.com/en-us/library/windows/apps/windows.management.deployment.packagemanager.aspx
What you got in this page, but it is not in this page: http://msdn.microsoft.com/en-us/library/windows/apps/windows.foundation.collections
Mike Zhang[MSFT]
MSDN Community Support | Feedback to us
-
Tuesday, May 15, 2012 7:47 AM
I was trying to follow an example showing how FindPackages could be used to obtain a list of the currently install Metro applications. Part of this example for a for_each loop to iterate over the collection and display the names of each package. I couldn't find the "begin" and "end" methods. I found the answer late yesterday. Turns out to have been a typo in my source. I was includig the header collections.h, which does exist. However I needed to include collection.h (no 's'). The example code is now workng as expected.
Thanks
- Marked As Answer by Mike Dos ZhangMicrosoft Contingent Staff, Moderator Tuesday, May 15, 2012 10:12 AM
-
Tuesday, May 15, 2012 10:12 AMModerator
I'm glad to hear that you make it work now.
Have a nice day!
Mike Zhang[MSFT]
MSDN Community Support | Feedback to us


