Boolean parameter in dll function in delphi 7

I have a dll library. I excluded the memory block for delphi types.

So what would be the appropriate type Booleanto declare a function?

Is it BOOLor something else?

The problem is that in the method signature:

function Test(Param1: BOOL; Param2: BOOL; docContent: PCharArray): Integer;

I get AV when the program leaves this function.

I assume this is a data type problem with these first two parameters.

+3
source share
1 answer

BOOLgreat for boolean types. This is a type of Windows, so you will see in all the functions in Windows.pas.

DLL- , - register, , , stdcall cdecl. :

function Test(Param1: BOOL; Param2: BOOL; docContent: PCharArray): Integer; stdcall;
+5

All Articles