Skip to content

Commit 26f0f8c

Browse files
committed
IupSetFunction() need a pointer to function of long type
1 parent 145c13f commit 26f0f8c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/GUI/IUP/buttons.bas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
1+
22
#include once "IUP/iup.bi"
33

44
#define NULL 0
55

6-
declare function ok_onclick cdecl (byval handler as Ihandle ptr) as integer
7-
declare function close_onclick cdecl (byval handler as Ihandle ptr) as integer
6+
declare function ok_onclick cdecl (byval handler as Ihandle ptr) as long
7+
declare function close_onclick cdecl (byval handler as Ihandle ptr) as long
88

99
if( IupOpen( NULL, NULL ) = IUP_ERROR ) then
1010
end 1
@@ -40,7 +40,7 @@ declare function close_onclick cdecl (byval handler as Ihandle ptr) as integer
4040
end 0
4141

4242
''
43-
function ok_onclick cdecl (byval handler as Ihandle ptr) as integer
43+
function ok_onclick cdecl (byval handler as Ihandle ptr) as long
4444

4545
IupMessage( "IupMessage", "Press OK" )
4646

@@ -49,7 +49,7 @@ function ok_onclick cdecl (byval handler as Ihandle ptr) as integer
4949
end function
5050

5151
''
52-
function close_onclick cdecl (byval handler as Ihandle ptr) as integer
52+
function close_onclick cdecl (byval handler as Ihandle ptr) as long
5353

5454
function = IUP_CLOSE
5555

examples/GUI/IUP/color.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
1+
22
#include once "IUP/iup.bi"
33

44
#define NULL 0
55

66
'':::::
7-
function ok_cb cdecl (byval handler as Ihandle ptr) as integer
7+
function ok_cb cdecl (byval handler as Ihandle ptr) as long
88
dim as Ihandle ptr red_text
99
dim as Ihandle ptr green_text
1010
dim as Ihandle ptr blue_text

0 commit comments

Comments
 (0)