• C#调用DLL文件时参数对应表


    Wtypes.h中的非托管类型  非托管 C语言类型    托管类名               说明
    HANDLE                  void*               System.IntPtr          32 位
    BYTE                    unsigned char       System.Byte            8 位
    SHORT                   short               System.Int16           16 位
    WORD                    unsigned short      System.UInt16          16 位
    INT                     int                 System.Int32           32 位
    UINT                    unsigned int        System.UInt32          32 位
    LONG                    long                System.Int32           32 位
    BOOL                    long                System.Int32           32 位
    DWORD                   unsigned long       System.UInt32          32 位
    ULONG                   unsigned long       System.UInt32          32 位
    CHAR                    char                System.Char            用 ANSI 修饰。
    LPSTR                   char*               System.String 或
                                                System.StringBuilder   用 ANSI 修饰。
    LPCSTR                  Const char*         System.String 或
                                                System.StringBuilder   用 ANSI 修饰。
    LPWSTR                  wchar_t*            System.String 或
                                                System.StringBuilder   用 Unicode 修饰。
    LPCWSTR                 Const wchar_t*      System.String 或
                                                System.StringBuilder   用 Unicode 修饰。
    FLOAT                   Float               System.Single          32 位
    DOUBLE                  Double              System.Double          64 位

  • 相关阅读:
    leetcode笔记--7 Find the Difference
    数据挖掘:概念与技术--笔记1--度量数据的相似性与相异性
    leetcode笔记--6 Add Digits
    leetcode 笔记5 single number
    数据挖掘导论笔记2 数据集的类型
    **leetcode笔记--4 Sum of Two Integers
    vs2015-Cordova开发安卓应用环境搭建
    c#一些常用的方法集合
    c#根据ip获取城市地址
    asp.net mvc 无刷新加载
  • 原文地址:https://www.cnblogs.com/wwwzzg168/p/3567628.html
Copyright © 2020-2023  润新知