Hello all,
Developing in C# for an application (.NET 4.7.2), I'm using the wrapper in the SDK 4 to connect the SpaceMouse.
To connect the device by using the method Open3DMouse(string), I have to enter a profile name.
Setting a name having letters with accent (like 'Pièce') raises the COM exception (in french):
"Indicateur proposé incorrect (Exception de HRESULT : 0x80040001 (OLE_E_ADVF))"
Is there some limitations on the name to purpose, as only ASCII format, or is there a mean to have letters with accent, and globally unicode text, because I would show name on the device in chinese and japanese format.
Thank you!
Profile name format with .NET
Moderator: Moderators
Re: Profile name format with .NET
The parameter passed to Navigation3D.Open3DMouse(string) is limited to an ASCII string, yes. This happens in the marshalling to native code.
I don't know why we have that limitation. We're looking into it.
Converting the string to a UTF-8 sequence of characters may work but I'm not sure you'd want to rely on that in production.
Nuno Gomes
Re: Profile name format with .NET
We're tracking this with reference WIN-1081 and we have modified the marshalling to support the full Unicode character set in Navigation3D.Open3DMouse() in the assembly included in v. 10.8.8 of 3DxWare 10.