如题,谢谢。

解决方案 »

  1.   

    Null
    一个值,指示变量不含有效数据。 Null 是将 Null 显式赋值给一变量的结果,或者是包含 Null 的表达式之间的任何运算。
    如果是需要传递一个空字符串,一般是用vbNullString常量
      

  2.   

    vbNullChar
    用于单个Null 字符的 Basic 常数 (ASCII value 0); 等效于 Chr$(0)vbNullString
    当调用一个外部过程,需要一个非零值的字符串时,所使用的常数
      

  3.   

    api函数不同,处理的方法也不同,你最好说明一下你用的是哪个api函数
      

  4.   

    一般是没有用null作为参数的如果传递的是地址,那么定义变量,参数填写变量名就可以
      

  5.   

    ///
    /// PS_AddPhoto()
    /// Add one photo to the slideshow, Transition and Text could be added this photo optionally
    /// Parameter:
    ///           szPhotoFile: Photo File name
    ///           dwPhotoDuration: Photo 's duration time
    ///           szTransName: Transition's name
    ///           dwMode: Transition's motion mode
    ///           dwTransDuration: Transition's duration
    ///           lpText: Photo's Caption info, if lpText == NULL, there will be no caption added to the photo
    ///           lpPhotoCropRect: Photo's rect section that will be used in the slideshow, 
    ///    if lpPhotoCropRect == NULL, the photo will not be cropped.
    /// return value:
    ///   Whether the photo is added successfully,
    ///           E_PS_SUCCESS if successful
    ///
    /// Note:
    ///       This function could be called in one loop to add all your photos
    ///
    PHOTOSLIDE_API int PS_AddPhoto(char *szPhotoFile, 
       DWORD dwPhotoDuration, 
       char *szTransName, 
       DWORD dwMode, 
       DWORD dwTransDuration,
       LP_PS_TEXT lpText,
       LPRECT lpPhotoCropRect);
    比如说这样一个API, 我想把lpText, lpPhotoCropRect以NULL传进去,在VB里该怎么做呢?
      

  6.   

    //比如说这样一个API, 我想把lpText, lpPhotoCropRect以NULL传进去,在VB里该怎么做呢?把lpText 声明为as long,lpPhotoCropRect声明为as any
    然后,传递0即可