To follow on....the NOMANGLE & CCONV symbols are not familiar to me........from what I can guess they are there to stop C++ function mangling....is this correct?
If so, then your compiler will have a specific method to do this...
With MSVC++ I would do the following...
Code:
#define DllImport extern "C" __declspec (dllimport)
DllImport int MyReadFile(int *lparray,
int pixelbit,
long head,
long width,
long height,
LPSTR fname);
That would normally allow me to import without problems....but then I cant guarantee as every dll I have ever written has been in C++