zoukankan      html  css  js  c++  java
  • VC C# 数据对应

    The   following   table   lists   data   types   used   in   the   Win32   API   (listed   in   Wtypes.h)   and   C-style   functions.   Many   unmanaged   libraries   contain   functions   that   pass   these   data   types   as   parameters   and   return   values.   The   third   column   lists   the   corresponding   .NET   Framework   built-in   value   type   or   class   that   you   use   in   managed   code.   In   some   cases,   you   can   substitute   a   type   of   the   same   size   for   the   type   listed   in   the   table.  
       
      Unmanaged   type   in   Wtypes.h     Unmanaged   C   language   type   Managed   class   name   Description    
      HANDLE   void*   System.IntPtr   32   bits    
      BYTE   unsigned   char   System.Byte   8   bits    
      SHORT   short   System.Int16   16   bits    
      WORD   unsigned   short   System.UInt16   16   bits    
      INT   int   System.Int32   32   bits    
      UINT   unsigned   int   System.UInt32   32   bits    
      LONG   long   System.Int32   32   bits    
      BOOL   long   System.Int32   32   bits    
      DWORD   unsigned   long   System.UInt32   32   bits    
      ULONG   unsigned   long   System.UInt32   32   bits    
      CHAR   char   System.Char   Decorate   with   ANSI.    
      LPSTR   char*   System.String   or   System.StringBuilder   Decorate   with   ANSI.    
      LPCSTR   Const   char*   System.String   or   System.StringBuilder   Decorate   with   ANSI.    
      LPWSTR   wchar_t*   System.String   or   System.StringBuilder   Decorate   with   Unicode.    
      LPCWSTR   Const   wchar_t*   System.String   or   System.StringBuilder   Decorate   with   Unicode.    
      FLOAT   Float   System.Single   32   bits    
      DOUBLE   Double   System.Double   64   bits    
       
      For   corresponding   types   in   Visual   Basic   .NET,   C#,   and   the   Managed   Extensions   for   C++,   see   the   Introduction   to   the   .NET   Framework   Class   Library.  

  • 相关阅读:
    JavaScript——标准对象
    JavaScript——方法
    JavaScript——变量作用域
    移动开发程序员的悲哀是什么?
    腾讯14年老员工被公司恶意逼走!以不胜任工作为由被裁!腾讯对待老员工也太狠了吧?
    Android开发北漂 8 年,飘飘飘 飘够了。。。。
    我是双非/三本/专科学校的Android开发,我有机会进入大厂吗?
    Android开发3年,我转Java后台了,真香!
    我的字节跳动Android面试初体验——稀里糊涂结束战斗
    Android Studio 教程:入门开发第一个程序
  • 原文地址:https://www.cnblogs.com/todd/p/1207302.html
Copyright © 2011-2022 走看看