在api view 加载了win32api文件后,可以直接查到很多api的写法,直接拷贝复制就可以了,可以有些api却找不到,比如SHBrowseForFolder、SHGetPathFromIDList等等,这些api应该加载什么文件呢,到哪里去下载呀?
第一个提供者,满分送上。

解决方案 »

  1.   

    从Msdn里找,一般是c的了,用vb有点吃亏
    你根据参数改一下声明就行了SHGetPathFromIDList
    This function converts an item identifier list to a file system path. WINSHELLAPI BOOL WINAPI SHGetPathFromIDList( 
    LPCITEMIDLIST pidl, 
    LPSTR pszPath ); 
    Parameters
    pidl 
    [in] Pointer to an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop). 
    pszPath 
    [out] Pointer to a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size. 
    Return Values
    TRUE indicates success. FALSE indicates failure.Res
    If the location specified by the pidl parameter is not part of the file system, this function will fail. RequirementsRuns on Versions Defined in Include Link to 
    Windows CE OS 2.0 and later Shellapi.h     Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
      

  2.   

    我的方法是上google用"VB 函数名"做关键字查找,一般能找到函数的声明和范例 :-)例如 SHBrowseForFolder函数你可以用"VB SHBrowseForFolder"试一下。
      

  3.   

    to: TechnoFantasy(www.applevb.com) 我想找的是.txt文件,有没有啊?这样利用api view 打开,输入其名子就可得到带参数的完整的api。拷贝到代码区就可以了。
      

  4.   

    推荐一个API-Guide下载,类似于api viewer,但是里面的API列表更加全面:
    http://www.mentalis.org/agnet/appdown.shtml
      

  5.   

    API-Guide 可是一个很不错的工具。
      

  6.   

    下载了,刚看了一下
    确实比Api viewer好的多