I am working on a project that uses Expression Blend to produce a silverlight front-end. But the XAML code is used to custom generate C++ code for an Embedded project.

The automatically gernerated C++ code referrs to the TextBlock code (of the XAML file) in the header (.h) file like this:


IXRTextBlockPtr m_pFoo; // <TextBlock x:Name="Foo">

So how do I use this IXRTextBlockPtr pointer varable, m_pFoo, in the C++ code to assign a text string that will appear in the window?