Thanks for the explicit example with explanation.
You are probably confused because you have never seen a multi-block version resource.
Until Cliff posted his code, I had not seen a complete example (even a simple one-language example), but to see a two-language example brings it all together.
Your example also shows that all the #DEFINEs I had used in my last posting aren't necessary. I was imitating what I had seen in the MSDN samples, trusting that "the pros" have a good reason for what they'd done even though it may not be obvious to me. So your example confirms that there's nothing wrong with the simpler construction I had originally imitated from FireFly's output. Good to know.
Most sample code shows only one narrow example, just enough to validate the minimal case. It's usually not enough to permit recognition of the proper structure or pattern.
Your example is "robust": more than the minimum but not too complex. The point is easy to recognize. Really makes a difference!
Thanks for taking the time and being thorough.
-John
Leave a comment: