Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
What is the C++ syntax for "typeof(string)"? I'm patterning after the following line from SourceGrid sample #14.

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


I'm trying to setup a SourceGrid 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(???);

[confused]
Posted
Updated 25-Aug-09 10:29am
v2

1 solution

Into C++/CLI typeof(Something) goes to Something::typeid.
You should post this kind of questions into Managed/ C++ CLI forum.It's native coding forum.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900