• 0

How to assign text to a textbox in c++ ?


Question

I have a silverlight app that uses TextBox XAML controls.
 
In the c++ code-behind, IXRTextBoxPtr types are associated with these textboxes using "FindName" like this:
 
FindName(L"ColNum3", &m_pColNum3);
 
(where ColNum3 corresponds with the XAML CODE like this: )
 
Then, the code assigns the pointer like this:
 
std::wstring wsTransfer;  // gets the wstring from imput
const WCHAR * wpszInput;
wpszInput = wsTransfer.c_str();
m_pColNum3->SetText(wpszInput);
but the display does not show the text data.
 
What am I missing? What steps am I missing to have this text modification display on the screen?
 
If I did not ask this question completely or left something off, please let me know.
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.