I have really old 'c' code that uses read to read a binary file. Here is a sample:
uint MyReadFunc(int _FileHandle, char *DstBuf, uint BufLen)
{
return (read( _FileHandle, DstBuf, BufLen));
}
For 64bit OS - char * will be 64 bits but the BufLen is only 32 bits and the returned value are only 32 bits.
Its not an option to change this to .NET - I have .NET versions, but I need this old library converted also.
Can someone please tell me what I need to use to do File i/o on 64 bit OS (using 'C' code)