分享

c-vb Type

 kenwang 2005-12-26
C语言数据类型在VisualBasic中声明为调用时使用的表达式

   ATOM ByVal variable As Integer 结果为Integer 类型的表达式

   BOOL ByVal variable As Long 结果为 Long 类型的表达式

   BYTE ByVal variable As Byte 结果为 Byte 类型的表达式

   CHAR ByVal variable As Byte 结果为 Byte 类型的表达式

   COLORREF ByVal variable As Long 结果为 Long 类型的表达式

   DWORD ByVal variable As Long 结果为 Long 类型的表达式

   HWND, HDC, HMENU ByVal variable As Long 结果为 Long 类型的表达式等Windows 句柄

   INT, UINT ByVal variable As Long 结果为 Long 类型的表达式

   LONG ByVal variable As Long 结果为 Long 类型的表达式

   LPARAM ByVal variable As Long 结果为 Long 类型的表达式

   LPDWORD variable As Long 结果为 Long 类型的表达式

   LPINT, LPUINT variable As Long 结果为 Long 类型的表达式

   LPRECT variable As type 自定义类型的任意变量

   LPSTR, LPCSTR ByVal variable As String 结果为 String 类型的表达式

   LPVOID variable As Any 任何变量(在传递字符串的时候使用ByVal)

   LPWORD variable As Integer 结果为Integer 类型的表达式

   LRESULT ByVal variable As Long 结果为 Long 类型的表达式

   NULL As Any 或 ByVal Nothing 或

   ByVal variable As Long ByVal 0& 或 VBNullString

   SHORT ByVal variable As Integer 结果为Integer 类型的表达式

   VOID Sub procedure 不可用

   WORD ByVal variable As Integer 结果为Integer 类型的表达式

   WPARAM ByVal variable As Long 结果为 Long 类型的表达式

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约