Hello im a newbie from C++. For a my project i need to use a enum value similar C# example.
My Struct
struct Rows
{
string name;
bool primaryKey;
int lenght;
string defined;
MyLDC::Attributes attrib;
bool Nullable;
bool AutoIncrement;
string comment;
};
Rows rw;
Rows* row = &rw;
MyLDC::Attributes
enum Attributes
{
_BINARY = 0x26,
_UNSIGNED = 0x27
};
My Example function
void MyLDC::CreateTable(string tablename,string primaryKey)
{
//Simple Row Implementation
row->name = "Example Row";
row->AutoIncrement = true;
row->primaryKey = true;
row->comment = "Example Row";
row->attrib = Attributes::_UNSIGNED;
I get error on row->attrib = Attributes::_UNSIGNED;
no have idea for this error. who are the correct solution?