Thanks you for your help. This is the problem: int MyMethod(LPCTSTR inputA) { array<Byte>^ MyStringArray = inputA?????? // Byte[] version from inputA .. LPCTSTR MyString = MyString???// converted string from MyStringArray .. } Dll is not Unicode now, probably in future, depends on the customer. LPCTSTR is OK for Ascii and Unicode, how to convert if inputA is Ascii or Unicode? WideCharToMultiByte if Unicode? if Ascii? Thanks, Marco H.
DLL
UNICODE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)