开发文章

WideCharToMultiByte

【声明】

vb

Public Declare Function WideCharToMultiByte Lib "kernel32" Alias "WideCharToMultiByte" (ByVal CodePage As Long, ByVal dwFlags As Long, ByVal lpWideCharStr As String, ByVal cchWideChar As Long, ByVal lpMultiByteStr As String, ByVal cchMultiByte As Long, ByVal lpDefaultChar As String, ByVal lpUsedDefaultChar As Long) As Long

vb.net

Public Declare Function WideCharToMultiByte Lib "kernel32" Alias "WideCharToMultiByte" (ByVal CodePage As Integer, ByVal dwFlags As Integer, ByVal lpWideCharStr As String, ByVal cchWideChar As Integer, ByVal lpMultiByteStr As String, ByVal cchMultiByte As Integer, ByVal lpDefaultChar As String, ByVal lpUsedDefaultChar As Integer) As Integer

c#

[DllImport("kernel32", EntryPoint="WideCharToMultiByte")]
public static extern int WideCharToMultiByte (
        int CodePage,
        int dwFlags,
        string lpWideCharStr,
        int cchWideChar,
        string lpMultiByteStr,
        int cchMultiByte,
        string lpDefaultChar,
        int lpUsedDefaultChar
);

【说明】
将通配符映像为多字节

 

上一篇:waveOutWrite

下一篇:WindowProc

文章信息

发布时间:2012-06-07

发布者:panshy_bbs88

浏览次数: