3F / DllExport

.NET DllExport with .NET Core support (aka 3F/DllExport aka DllExport.bat)
MIT License
960 stars 133 forks source link

Use a custom name with a mixture of Japanese and English, but do not display Japanese #233

Open crazyGod666 opened 4 months ago

crazyGod666 commented 4 months ago

I have written an ACMI document, which includes the following content: FileType=text/acmi/tacview FileVersion=2.2 0,ReferenceTime=2011-06-02T05:00:00Z,Author=Au,Title=Tac_Task1 1,T=100|100|2000|0|||||,Name=A-7,Color=Red 2,T=100|100|2000,Name=A-7,Color=Blue,ShortName=TestNamesaサービス私dsaandName

0

1,T=100.5|||0|0|0|40|40|90,Label=2

20

1,T=101|100.5|,AOS=45,FocusedTarget=2,Radius=100 When I open it by Tacview,I can not see the object's total ShortName on label which the id is 2. What is the reason?Should I add Japanese font?

crazyGod666 commented 4 months ago

image +

3F commented 3 months ago

Hello,

Depends on how ShortName was marshaled in your code. Have you seen https://github.com/3F/DllExport/wiki/Quick-start#about-data-types

For example, using Conari you can access it through TCharPtr etc.

[DllExport]
public static void init(TCharPtr shortName)
{
    if(shortName == "Achilles") ...
}

TCharPtr_8_16bit

NativeString<TCharPtr> ns = new("Achilles");

TCharPtr.Unicode = true / false; // runtime -> WCharPtr / CharPtr

TCharPtr_8_16bit_2

Please clarify the case.

upd: illustration to the original

TestNamesaサービス私dsaandName

jp_16bit

jp_8bit