I'm trying to have a pointer created to nested structure array. But to c++ only first structure elements are passed...
C++ code:
typedef structure
{
int One;
int Two;
}nestedStru; 
typedef structure
{
int First;
nestedStru* Poniter; //Pointer to nested structure array
}mainStru;
Equivalent python code:
class nestedStru(Structure)
    _fields_ = [("One",c_uint8),          
        ("Two",c_uint8)]
class mainStru(Structure):
    _fields_ = [("First",c_uint8),
                ("PointerToNested",POINTER(nestedStru))] 
I tried creating an object of main class and cast pointer to array objects..
object = mainStru()
object.Second = cast((nestedStru * 2)(), POINTER(nestedStru)) 
Any suggestions would be welcome. Thanks in advance!