Hi
I want to use external dll file to get information about remaining ribbon in my printer
there is a function in this exported dll do that in VC6 ..how can I convert this function to use it in my VB.Net project
in vc6 it just like this:
HITI_GetDeviceInfoW(0, 4, (unsigned char *)dataArray, &dwLen)
thanks
void CTestDevInfoDlg::OnBtnGetRibbonInfo()
{
DWORD dwRet = 0;
DWORD dataArray[32] = {0};
DWORD dwLen = 0;
TCHAR szType[32] = {0};
TCHAR szCount[32] = {0};
dwRet = HITI_GetDeviceInfoW(0, 4, (unsigned char *)dataArray, &dwLen);
if ( dwRet == 0 )
{
_stprintf(szType, _T("%d"), dataArray[0]);
m_EditRibbonType.SetWindowText(szType);
_stprintf(szCount, _T("%d"), dataArray[1]);
m_EditRibbonCount.SetWindowText(szCount);
}
else
{
_stprintf(szType, _T("Error code = %d"), dwRet);
MessageBox(szType, _T("OnBtnGetRibbonInfo"), MB_OK);
}
}