Search found 67 matches

by Axle
Aug 24, 2023 7:42
Forum: Libraries Questions
Topic: GRX library Licence - didtributing applications.
Replies: 2
Views: 1849

Re: GRX library Licence - didtributing applications.

Thank you @caseih That makes sense :) Static linking is OK for DOS, as long as the notice for GRX being used. And all other Win32, Unix must be GPL(static) or other if dynamic linked. I am only just starting out with DJGPP and FreeBASIC on DOS 32 and thought that 32-bit allowed dynamic linking to .D...
by Axle
Aug 20, 2023 1:45
Forum: Libraries Questions
Topic: GRX library Licence - didtributing applications.
Replies: 2
Views: 1849

GRX library Licence - didtributing applications.

Hi forum I am attempting to decipher the license agreement for GRX libray. Hopefully someone is familiar and can assist. (2) Amendments / excepcions to (1) Using the DOS versions (DOS only! this exception DOES NOT apply to the other versions) you are permitted to distribute an application linked wit...
by Axle
Aug 13, 2023 1:55
Forum: DOS
Topic: Guidance on: GRX, libpng, jpeglib and DJGPP builds general.
Replies: 1
Views: 1233

Re: Guidance on: GRX, libpng, jpeglib and DJGPP builds general.

Hi all An update on my questions above: I haven't had a chance to compile or test a demo with these yet and still running blind, but so far I seam to have 2/3 alternative locations with different source files.. zlib: https://www.zlib.net/ https://gnuwin32.sourceforge.net/packages/zlib.htm libpng: ht...
by Axle
Aug 12, 2023 0:34
Forum: DOS
Topic: Guidance on: GRX, libpng, jpeglib and DJGPP builds general.
Replies: 1
Views: 1233

Guidance on: GRX, libpng, jpeglib and DJGPP builds general.

Hi team I am setting up the fbc environment for use with FreeDOS 1.3 and W9x and need some assistance with the correct builds to match the FBC DOS library. As well as the DJGPP builds I am also looking for the corresponding MinGW32(32-64) and Ubbuntu64 source, but focus on the DOS source. I hope I a...
by Axle
Jun 30, 2023 21:20
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

Thanks @fmx From C Standard Library Functions documentation page: Note: In order to make calling the C runtime functions very easy, any string type argument may be directly passed to a procedure referring to a parameter declared as 'zstring ptr'. The compiler performs itself an automatic conversion ...
by Axle
Jun 30, 2023 0:12
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

Solution as per @fmx recommendation: Resulting in only an IIF keyword (which returns a value), the macros 'mvaddstr' and 'mvwaddstr' should be used in expressions and not alone. Full source of the conversion from \PDCurses-3.9\demos\firework.c to FreeBASIC For anyone that may have an interest in the...
by Axle
Jun 29, 2023 22:36
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

Thanks @fmx mvwaddstr(stdscr, row, col, "-") '' error 24: Invalid data types, found ''' in 'mvwaddstr(stdscr, row, col, "-") vs result = mvwaddstr(stdscr, row, col, "-") '' Compilation finished successfully. So iif(wmove(win, y, x) = ERR_, ERR_ , waddnstr(win, str, -1))...
by Axle
Jun 28, 2023 23:56
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

Hi forum I think I have nailed this problem down to the #defines in the header. mvaddstr(...) -> mvwaddstr(...) -> wmove() + waddnstr() wmove() + waddnstr() work as expected, mvaddstr() and mvwaddstr() both give error 24: Invalid data types in... C declaration from ncurses.h (requires const char *, ...
by Axle
Jun 28, 2023 13:56
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

P.S. I just tried: Sub explode(row As Integer, col As Integer) '' Maybe consider Long erase_() wmove(stdscr, row, col) waddnstr(stdscr, "-", -1) '' No error 'mvaddstr(row, col, "-") myrefresh() ... and Sub explode(row As Integer, col As Integer) '' Maybe consider Long erase_() wm...
by Axle
Jun 28, 2023 13:46
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

I think I will try directly: #define win stdscr wmove(win, y, x) waddnstr(win, str, -1) And see if it works, and then walk back the #defines if it does: declare function waddnstr(byval as WINDOW_ ptr, byval as const zstring ptr, byval as long) as long #define mvwaddstr(win, y, x, str) iif(wmove(win,...
by Axle
Jun 28, 2023 13:11
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

Re: ncurses "err 24 Invalid data types in mvaddstr()

"'waddnstr()' expects as second parameter a Zstring Ptr, give it a Zstring Ptr argument !" That was my first attempt @!"..." As per our previous discussion and answer from the limpv conversions:/ aka mvaddstr(LINES -1 - row, row * direction + start, IIf(direction < 0, @!"\\&...
by Axle
Jun 28, 2023 7:53
Forum: Libraries Questions
Topic: ncurses "err 24 Invalid data types in mvaddstr()
Replies: 11
Views: 2206

ncurses "err 24 Invalid data types in mvaddstr()

Hi forum Question directly relating to curses "ncurses.bi" using FBC on Lubuntu 202.04. FreeBASIC Compiler - Version 1.09.0 (2022-01-01), built for linux-x86_64 (64bit) I am attempting to run the demo from pdcurs34\demos\firework.c (converted to FreeBASIC) The original C source compiles an...
by Axle
Jun 25, 2023 1:37
Forum: Libraries Questions
Topic: libmpv binder creation | mpv API error: invalid parameter
Replies: 6
Views: 1703

Re: libmpv binder creation | mpv API error: invalid parameter

In FreeBASIC, an array is not a simple list of elements but a complete structure with a specific descriptor that contains all the information defining the array. When you pass an array to an FB procedure, you are actually passing the address of its descriptor and not the array data address (the arr...
by Axle
Jun 24, 2023 0:44
Forum: Libraries Questions
Topic: libmpv binder creation | mpv API error: invalid parameter
Replies: 6
Views: 1703

Re: libmpv binder creation | mpv API error: invalid parameter

First issue: An FB type name can be used as a member name in a Type/Union FB structure as long as this structure does not contain any member procedures. What exactly is the error you are getting ? The FB keywords, Types used as variable/object names, only occur in In type definition and unions. So,...
by Axle
Jun 24, 2023 0:31
Forum: Libraries Questions
Topic: libmpv binder creation | mpv API error: invalid parameter
Replies: 6
Views: 1703

Re: libmpv binder creation | mpv API error: invalid parameter

For the second issue, try this: declare function mpv_command(byval ctx as mpv_handle ptr, byval args as const zstring ptr ptr) as long mpv_command(ctx, @cmd1(0)) "declare function mpv_command(byval ctx as mpv_handle ptr, byval args as const zstring ptr ptr) as long" was the original outpu...