G
Guest
Hall
I want to call an unmanaged dll, written in eMbedded Visual C++ 4.
from Visual Studio 2003 Visual Basic, for an application for Pocket PC 2003
I have tried with "Public Declare Function MSR3000_Open Lib "msr8800.dll" (..." and with the DllImport-statement
but the "MissingMethodException" occurs every time
I dont know how to set/declare the parameters
The function-declaration in the dll
typedef DWORD RET_STATUS
MSR8800_API RET_STATUS Msr3000_Open(TCHAR *ptrSerialPort, TCHAR *ptrDllVersion
TCHAR *ptrFirmwareVersion, void *pPortHandle
I have a program written in eMbedded Visual C++ 4.0 and the call from that program looks like this
DWORD rs
TCHAR szPort[] = _T("COM1:"); // Serial Por
TCHAR szDll[40]; // to receive version inf
TCHAR szFirm[40]; // to receive firmware versio
TCHAR szDummy[20]; // for unused parameter
rs = Msr3000_Open(szPort,szDll, szFirm, szDummy)
Regards Ã…ke
I want to call an unmanaged dll, written in eMbedded Visual C++ 4.
from Visual Studio 2003 Visual Basic, for an application for Pocket PC 2003
I have tried with "Public Declare Function MSR3000_Open Lib "msr8800.dll" (..." and with the DllImport-statement
but the "MissingMethodException" occurs every time
I dont know how to set/declare the parameters
The function-declaration in the dll
typedef DWORD RET_STATUS
MSR8800_API RET_STATUS Msr3000_Open(TCHAR *ptrSerialPort, TCHAR *ptrDllVersion
TCHAR *ptrFirmwareVersion, void *pPortHandle
I have a program written in eMbedded Visual C++ 4.0 and the call from that program looks like this
DWORD rs
TCHAR szPort[] = _T("COM1:"); // Serial Por
TCHAR szDll[40]; // to receive version inf
TCHAR szFirm[40]; // to receive firmware versio
TCHAR szDummy[20]; // for unused parameter
rs = Msr3000_Open(szPort,szDll, szFirm, szDummy)
Regards Ã…ke