How to convert typeof(string) in c# to C++

Aug 15, 2009 at 3:41 PM
Edited Aug 15, 2009 at 3:50 PM

I'm trying to setup a text editor in C++.  I don't know how to make the constructor in the following statement.

SourceGrid::Cells::Editors::TextBox^ textEditor = gcnew SourceGrid::Cells::Editors::TextBox(???); 




What is the C++ syntax for "typeof(string)"?  I'm patterning after the following line from sample #14.  

SourceGrid.Cells.Editors.ComboBox cbEditor = new SourceGrid.Cells.Editors.ComboBox(typeof(string));

Sep 3, 2009 at 8:53 AM

this questions should be asked in manager C++ forums.  SourceGrid is written in C#, so we can't help you much