J
jacky
Hi
I've got a dll written in c++ with header like this:
class __declspec (dllexport) CPrnDrv
{
private:
static int licz_wywolan;
HANDLE hPort;
BOOL PrintPortOpen (LPTSTR lpszPortName);
BOOL PrintPortClose ();
bool WritePort(prnstr str);
public:
DWORD dwError;
CPrnDrv();
~CPrnDrv();
bool InitPrinter(LPTSTR lpszPortName, int PageLength);
void ExitPrinter();
bool WritePort(BYTE *Byte, DWORD Size, LPDWORD wNumBytesWritten);
bool ReadPort (BYTE *Byte, DWORD Size, LPDWORD dwNumBytesRead);
};
How can I import this dll (VS2005 C#) and use functions InitPrinter and
WritePort?
I've got a dll written in c++ with header like this:
class __declspec (dllexport) CPrnDrv
{
private:
static int licz_wywolan;
HANDLE hPort;
BOOL PrintPortOpen (LPTSTR lpszPortName);
BOOL PrintPortClose ();
bool WritePort(prnstr str);
public:
DWORD dwError;
CPrnDrv();
~CPrnDrv();
bool InitPrinter(LPTSTR lpszPortName, int PageLength);
void ExitPrinter();
bool WritePort(BYTE *Byte, DWORD Size, LPDWORD wNumBytesWritten);
bool ReadPort (BYTE *Byte, DWORD Size, LPDWORD dwNumBytesRead);
};
How can I import this dll (VS2005 C#) and use functions InitPrinter and
WritePort?