|
![]() |
#1 |
Участник
|
на ax 4.0 нет такого класса и using не является зарезервированным словом
![]() |
|
![]() |
#2 |
Участник
|
|
|
![]() |
#3 |
Участник
|
|
|
![]() |
#4 |
Участник
|
X++: client static int _lOpen(str fileName, int readWrite) { DLL _dll = new DLL("Kernel32.dll"); DLLFunction _iOpen = new DLLFunction(_dll, "_lOpen"); ; _lOpen.arg(ExtTypes::WString, ExtTypes:: DWORD); _lOpen.returns(ExtTypes:: DWORD); return _lOpen.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:: DWORD, ExtTypes::Pointer, ExtTypes:: DWORD); _lRead.returns(ExtTypes::Word); return _lRead.call(fHandle, buff, bytes); } С уважением, Дмитрий. Последний раз редактировалось DmitryK; 09.08.2012 в 08:26. |
|
![]() |
#5 |
Участник
|
Цитата:
Сообщение от 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: ![]() _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: ![]() ![]() _lRead.returns(ExtTypes::Word); return _lRead.call(fHandle, buff, bytes); } Как то так. К сожалению, проверить сейчас не могу. С уважением, Дмитрий. |
|
![]() |
#6 |
Участник
|
Что именно не помогает?
C уважением, Дмитрий . |
|