Page 1 of 1

Header discrepancies

Posted: Mon Sep 06, 2010 4:35 pm
by PaulG

I have just discovered this project and am looking to replace the DLPort drivers I currently use. However, I have been struggling with the DlPortWritePortUshort and DlPortReadPortUshort.

To cut a long story short, it seems that they have been incorrectly defined in the inpout32drv.cpp file used to generate the DLL. In the .h file they are defined as

Code: Select all

USHORT  _stdcall DlPortReadPortUshort (USHORT port);
void    _stdcall DlPortWritePortUshort(USHORT port, USHORT Value);
In the .cpp file, they are

Code: Select all

USHORT DlPortReadPortUshort (USHORT port)
void DlPortWritePortUshort (USHORT port, USHORT Value)
They are missing the _stdcall directive. This is also the case for the DlPortReadPortUlong and DlPortWritePortUlong functions though I haven't tried to use those yet.

For information, the DLPort DLL has all the functions as _stdcall

Thanks for the project


Re: Header discrepancies

Posted: Thu Jan 20, 2011 1:19 am
by phil
Sorry for the massive delay in answering this - I must have missed the notifications on this post :oops:
Of course you are right - my mistake I'm afraid. I will fix it in the next build.

Thanks for the feedback.