M
MX
Welcome!
I have something like that:
ref class DCAM
{
...
private:
char str[64];
...
};
And in main program:
DCAM^ CAM = gcnew DCAM();
CAM->str[0] = 'a';
this->Text = gcnew System::String(Cam->str);
After compilation I got:
error C2664: 'System::String::String(const wchar_t *)' : cannot convert
parameter 1 from 'char [64]' to 'const wchar_t *'
1> Cannot convert a managed type to an unmanaged type
Thanks for any help.
I have something like that:
ref class DCAM
{
...
private:
char str[64];
...
};
And in main program:
DCAM^ CAM = gcnew DCAM();
CAM->str[0] = 'a';
this->Text = gcnew System::String(Cam->str);
After compilation I got:
error C2664: 'System::String::String(const wchar_t *)' : cannot convert
parameter 1 from 'char [64]' to 'const wchar_t *'
1> Cannot convert a managed type to an unmanaged type
Thanks for any help.