你可能没有了解api函数的原理,api函数不一定是要系统里的那几个dll,你自己的dll如引出函数,你也可以象调用其它dll一样调用它,看看Sendmessagebystring这个dll的原型申明吧,还有一种可能是这个dll有这个函数,但未在输出中列出,你看不到而已!

解决方案 »

  1.   

    Win32.txt is shipped with VB API Viewer; it contains most of the Windows; you can convert win32.txt to Microsoft Access MDB format for faster loading. APIs.
    But since Sendmessagebystring is not a Windows System API, you won't find it in API Viewer.
    If the DLL you have is written in C/C++ and you have the C/C++ style function prototype for Sendmessagebystring, you can write VB Declare statement yourself.
    You may find a book about how to use Windows API in VB; I think there are several excellent books about this topic out there.Here are some quick tips:
    C/C++ - VB
    -------------------------
    LPCTSTR/LPTSTR - String
    INT/LONG/UINT/ULONG - long
    SHORT/USHORT - int
    CHAR - String * 1
    struct - Type
    HWND - long
      

  2.   

    To Nicefeather and edyang :
    谢谢两位大师的指点!!!!!!!!!!!!
      

  3.   

    一般人们喜欢把传送string类型的sendmessage写成SendMessageByString或SendMessageString,其实它就是SendMessage,只不过最后一个参数是as String。