Показать сообщение отдельно
Старый 09.08.2012, 08:25   #9  
CHESER85 is offline
CHESER85
Участник
 
93 / 11 (1) +
Регистрация: 04.08.2011
Адрес: Ufa
Записей в блоге: 1
Цитата:
Сообщение от DmitryK Посмотреть сообщение
client static int _iOpen(str fileName, int readWrite)
{
DLL _dll = new DLL("Kernel32.dll");
DLLFunction _iOpen = new DLLFunction(_dll, "_iOpen");
;

_iOpen.arg(ExtTypes::WString, ExtTypes:WORD);

_iOpen.returns(ExtTypes:: DWORD);
return _iOpen.call(fileName, readWrite);
}

client static int _lRead(int fHandle, Binary buff, int bytes)
{
DLL _dll = new DLL("Kernel32.dll");
DLLFunction _lRead = new DLLFunction(_dll, "_lRead");
;


_lRead.arg(ExtTypes:WORD, ExtTypes::Pointer, ExtTypes:WORD);
_lRead.returns(ExtTypes::Word);

return _lRead.call(fHandle, buff, bytes);
}

Как то так. К сожалению, проверить сейчас не могу.

С уважением, Дмитрий.
не помогает