А чем 32x не устраивает?
Чат со мной
Алексей Пикуров писал(а):Здравствуйте, Евгений.
А чем 32x не устраивает?
FUNCTION mychatGetLibVersion return varchar2 as
External
LIBRARY mychat NAME "mychatGetLibVersion64"
parameters(
RETURN STRING
)
LANGUAGE C CALLING STANDARD PASCAL;
safecall просто создаёт вокруг тела процедуры блок try-except-end, в котором исключение переводится в HRESULT.
function DoSomething(a: DWORD): DWORD; safecall;
это тоже что
function DoSomething(a: DWORD; out Result: DWORD): HResult; stdcall;
FUNCTION mychatGetLibVersion2 (res out varchar2 ) return varchar2 as
External
LIBRARY mychat NAME "mychatGetLibVersion64"
parameters(
res maxlen,
res length,
res STRING,
RETURN STRING
)
LANGUAGE C CALLING STANDARD PASCAL;
Restrictions on External C Procedures
Currently, the following restrictions apply to external procedures:
This feature is available only on platforms that support DLLs.
Only C procedures and procedures callable from C code are supported.
You cannot pass PL/SQL cursor variables or records to an external procedure. For records, use instances of object types instead.
In the LIBRARY subclause, you cannot use a database link to specify a remote library.
The maximum number of parameters that you can pass to a external procedure is 128. However, if you pass float or double parameters by value, then the maximum is less than 128. How much less depends on the number of such parameters and your operating system. To get a rough estimate, count each float or double passed by value as two parameters.
CALLING STANDARD
Specifies the Windows NT calling standard (C or Pascal) under which the external procedure was compiled. (Under the Pascal Calling Standard, arguments are reversed on the stack, and the called function must pop the stack.) If you omit this subclause, then the calling standard defaults to C.
FUNCTION mychatGetLibVersion return varchar2 as
External
LIBRARY mychat NAME "mychatGetLibVersion64"
parameters(
RETURN STRING
)
LANGUAGE C CALLING STANDARD PASCAL;
CALLING STANDARD
Specifies the Windows NT calling standard (C or Pascal) under which the external procedure was compiled. (Under the Pascal Calling Standard, arguments are reversed on the stack and the called function must pop the stack.) If you omit this subclause, the calling standard defaults to C.
Алексей Пикуров писал(а):Я не гуру в С, поэтому:
Принято, спасибо. Будем ждать.
Ильнур, здравствуйте. Для подключения мобильных кл[…]
Версия обновлена. Вы обновили свой сервер? Проблем[…]
Мы доделали обработку ссылок на локальные ресурсы.[…]
Сделали ещё исправления . Свежая сборка будет на […]
Изменили логику отображения длительности отсутст[…]
MyChat Client [*] (24.04.2024) (android) (io[…]
Это формируете вы, система контроля рабочего време[…]
К сожалению проблема не решена, вы можете отключит[…]
Подскажите, в версии 3.3 починили эту проблему? А […]
Георгий дал вам ссылку на справку, расположенную н[…]
Здравствуйте. 1. Откройте описание ошибки в спра[…]