Declare Function GetBitmapPkgData Lib "LPDRTL.dll" (ByRef DBuf() As Byte, ByVal MaxLen As Long, ByVal DestID As Byte, _
ByVal Pid As Byte, ByRef hWnd As Long, ByVal bw As Long, ByVal bh As Long, ByVal bType As Byte, ByRef Orect As RECT, ByVal EnterMode As Byte, ByVal StayTime As Byte) As Long
 t = GetBitmapPkgData(DBuf(), 40000, 1, lastpid, Picture1.hWnd, 192, 64, 0, x, (3 * 2 ^ 5) + t, 0)
这样调用是否正确

解决方案 »

  1.   

    这个API没有见过呀,不是WINDOWS自带的吧。
      

  2.   

    这DLL在GOOGLE与百度上都查不到
      

  3.   

    根据经验来看,似乎应该这样:
    Declare Function GetBitmapPkgData Lib "LPDRTL.dll" (ByRef DBuf As Byte, ByVal MaxLen As Long, ByVal DestID As Byte, _
    ByVal Pid As Byte, byval hWnd As Long, ByVal bw As Long, ByVal bh As Long, ByVal bType As Byte, ByRef Orect As RECT, ByVal EnterMode As Byte, ByVal StayTime As Byte) As Long
    t = GetBitmapPkgData(DBuf(0), 40000, 1, lastpid, Picture1.hWnd, 192, 64, 0, x, (3 * 2 ^ 5) + t, 0)
      

  4.   

    又看见了你其他的帖子,修改为:t = GetBitmapPkgData(DBuf(0), 40000, 1, lastpid, Picture1.Picture.Handle, 192, 64, 0, x, (3 * 2 ^ 5) + t, 0)
      

  5.   

    是华北工控的LPT屏的DLL么
    我也遇到问题了,用他们给的那个doc写出来的方法执行无效
    他们本身用Delphi写的那个demo都无法执行,我是用VC翻写的