question

Sheldon C4 avatar image
0 Likes"
Sheldon C4 asked Joerg Vogel commented

dll path error with mandarin chinese

Hi,

I am using customer code with a DLL. If the DLL path contains Mandarin Chinese characters, the DLL file cannot be found.

Example:

// DLL path:  
"D:\測試路徑\AdventurerBoard\AdventurerBoard.dll"  
// << The file cannot be loaded.

// DLL path:  
"D:\AdventurerBoard\AdventurerBoard.dll"  
// << The file can be successfully loaded.

How can I resolve this issue?


FlexSim 24.2.2
module sdkdll
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·
@Sheldon C4, perhaps you can look for a solution in a more general approach in the whole internet. Involved in this are c++, path, path string, chinese characters. I tried this with an AI supported search tool and there has been some answers.
0 Likes 0 ·
Sheldon C4 avatar image Sheldon C4 Joerg Vogel commented ·


But in this case, I just want to connect the DLL in a FlexSim script.


If it were in a C++ environment, I would know how to fix it, but in FlexSim exterally linked, I don’t know how to verify the encoding problem.


No matter whether I input a relative position (e.g., figure 1) or an absolute position (e.g., figure 2), if the DLL path contains Mandarin Chinese characters, it will not connect to the DLL.


below picture

1733907435232.png1733907218310.png


0 Likes 0 ·
1733907218310.png (69.5 KiB)
1733907435232.png (68.5 KiB)
Joerg Vogel avatar image Joerg Vogel Sheldon C4 commented ·
@Sheldon C4, give C++ a try. FlexSim Script language is based on C++.
0 Likes 0 ·
Show more comments
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Sheldon C4,

Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.

You may need to update your profile information to identify yourself as a license owner or their associate. Check out our article for how to ensure you receive timely support. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.

If your current license is expired, please contact your local distributor to renew.

0 Likes 0 ·

0 Answers