// Creflex.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include using namespace std; class MyClass { public: MyClass(){} MyClass(int val){} virtual ~MyClass(){} int val() const{} void setVal(int val){} private: int m_val; }; struct Sample { }; int _tmain(int argc, _TCHAR* argv[]) { //Type type; //Type t = Type::ByName("MyClass"); MyClass my; Sample ss; Reflex::Type t = Reflex::Type::ByName("MyClass"); const std::type_info &typeInfo = t.TypeInfo(); Reflex::Type tt= Reflex::Type::ByTypeInfo(typeInfo); if(tt.IsStruct() || tt.IsClass()) std::cout<<"Struct found"<