手头有三个文件PrinterUsb.dll,PrinterUsb.lib,PrinterUsbDeclare.h
Dll里面的函数有下面两个:
int GetDevicePath(DEVINFO &DevInfo)DEVINFO的定义在PrinterUsbDeclare.h中
typedef struct
{
Char strDevPath[PATHLEN];
}DEVPATH;typedef struct
{
DEVPATH DevPath[DEVNUM];
int DevNum;
}DEVINFO;bool Write(char *pBuf,DWORD nNumberOfBytesToWrite,DWORD &NumberOfBytesWritten)我在VB中如何声明这两个函数呢,请各位高手帮忙一下,非常感谢,最好详细一点。
Dll里面的函数有下面两个:
int GetDevicePath(DEVINFO &DevInfo)DEVINFO的定义在PrinterUsbDeclare.h中
typedef struct
{
Char strDevPath[PATHLEN];
}DEVPATH;typedef struct
{
DEVPATH DevPath[DEVNUM];
int DevNum;
}DEVINFO;bool Write(char *pBuf,DWORD nNumberOfBytesToWrite,DWORD &NumberOfBytesWritten)我在VB中如何声明这两个函数呢,请各位高手帮忙一下,非常感谢,最好详细一点。
Private Declare Function WriteLib "PrinterUsb.dll" (ByVal lpSTRpBuf As String,ByVal nNumberOfBytesToWrite as Long,ByVal NumberOfBytesWritten as Long) As Long
Private Declare Function WriteLib "PrinterUsb.dll" (ByVal lpSTRpBuf As String,ByVal nNumberOfBytesToWrite as Long,ByVal NumberOfBytesWritten as Long) As Long
可这个Open声明的话,是不是已经跟VB里面的Open函数重名了,怎么办?
其中"欧盆"随便你换成什么字符