About API use?

  • Thread starter Thread starter cfyam
  • Start date Start date
[DllImport("coredll.dll")]
private static extern int MultiByteToWideChar(
uint CodePage,
uint dwFlags,
string lpMultiByteStr,
int cbMultiByte,
byte[] lpWideCharStr,
int cchWideChar
);

However you have the ability through the System.Text namespace to get a byte
representation of a string in a variety of encodings so you would probably
not need to P/Invoke. What are you trying to achieve?

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top