public:
array<System::Byte>^ convert_to_byte(struct s)
{
array<System::Byte>^ a = gcnew array<System::Byte>(5);
return a;
}
gives me :
Error 1 error C2027: use of undefined type 'my_make_data::s'
public:
array<System::Byte>^ convert_to_byte(struct s)
{
array<System::Byte>^ a = gcnew array<System::Byte>(5);
return a;
}
gives me :
Error 1 error C2027: use of undefined type 'my_make_data::s'
struct s
shall be defined outside the function.
Also it is not clear why it is present in the function definition as a parameter type specifier when no object of this type is used within the function body.