Search found 190 matches

by oyster
Jan 09, 2019 8:35
Forum: Beginners
Topic: how to set only some member of type?
Replies: 4
Views: 500

Re: how to set only some member of type?

Thanks, it seems that struct expense expenses[] = { {"Rent", 1000, { .month = 1, .day = 13, .min=0 } }, {"Gas", 100, { .year = 2013, .month = 1, .day = 14 } }, {"Food", 300, { .year = 2013, .month = 1, .day = 16 } }, {"Gym", 50, { .year = 2013, .month = 1, .da...
by oyster
Jan 09, 2019 7:11
Forum: Beginners
Topic: how to set only some member of type?
Replies: 4
Views: 500

how to set only some member of type?

The C code is typedef struct lxw_datetime { int year; int month; int day; int hour; int min; double sec; } lxw_datetime; struct expense { char item[32]; int cost; lxw_datetime datetime; }; struct expense expenses[] = { {"Rent", 1000, { .year = 2013, .month = 1, .day = 13 } }, {"Gas&qu...
by oyster
Jan 08, 2019 7:18
Forum: Libraries
Topic: xcgui-2.3.3 win32
Replies: 11
Views: 1126

Re: xcgui-2.3.3 win32

is there a wke example?
by oyster
Jan 08, 2019 5:28
Forum: Libraries
Topic: xcgui-2.3.3 win32
Replies: 11
Views: 1126

Re: xcgui-2.3.3 win32

nice binding, you saved me a lot of time!

I think I'd better print your fb bi file and C header file side by side to learn
by oyster
Jan 07, 2019 5:30
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80899

Re: FLTK C for FreeBASIC Jan 09, 2017

3 more things
1. how to do static link with FLTK in fb app?

2. does the spreadsheet/table in fltk*.bi support sorting by clicking the column header?

3. As for fltk for nim, https://github.com/Skrylar/nfltk is updated in July 2018, and there is only one test but you supplied so many!
by oyster
Jan 07, 2019 5:20
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80899

Re: FLTK C for FreeBASIC Jan 09, 2017

you scared me. So I checked https://www.fltk.org/COPYING.php and find FLTK uses LGPL, I understand that it is ok to use FLTK dynamic file(i.e. DLL on windows) even in commercial, close-source app. In fact, FLTK uses a modified LGPL, so if I use only official FLTK without modification, I can do stati...
by oyster
Jan 06, 2019 13:49
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80899

Re: FLTK C for FreeBASIC Jan 09, 2017

btw, is it legal to translate the fltk*.bi(and maybe the later fltk*-oop.bi) into nimlang? As we can find that the freebasic function's declarations look like those in nimlang too much. import winim # for the L"" type long = int16 Fl_Widget = int16 Fl_Window = int16 Fl_Button = int16 Fl_Ca...
by oyster
Jan 06, 2019 13:37
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80899

Re: FLTK C for FreeBASIC Jan 09, 2017

I can't resist translating one of your demo file into nimlang (http://nimlang.org/) however I am stuck on binding the callback function btw, I forget to save the nim source into utf8, so the displayed string is wrong http://att.newsmth.net/att.php?p.109.166090.339.jpg
by oyster
Jan 06, 2019 9:51
Forum: Windows
Topic: question on call functions in DLL
Replies: 17
Views: 1564

Re: question on call functions in DLL

the latest DLL/C header/Manual are uploaded to https://github.com/retsyo/xcgui_lib R:\xcgui\XCGUI.dll on Workstation version 6.7601 File Version Information : Version language : 中文(简体,中国) FileDescription : 炫彩界 FileVersion : 2018.7.28.0 InternalName : XCGUI LegalCopyright : Copyright (C) 2010-2018 炫彩...
by oyster
Jan 06, 2019 3:23
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80899

Re: FLTK C for FreeBASIC Jan 09, 2017

the new one looks so clean! I have read fltk many years ago when it looks some ugly(I mean the visual looking ), I will check whether it has done face-lifting.
by oyster
Jan 06, 2019 2:54
Forum: Windows
Topic: question on call functions in DLL
Replies: 17
Views: 1564

Re: question on call functions in DLL

Thanks, every one I put xcgui.dll, which is a 32bits dll and said to be free for use, here https://github.com/retsyo/xcgui_nim (btw you can find that I am stuck in this nim binding) In fact, there is an incompleted binding for VB over the internet, it is not hard to make it go with fb's syntax. here...
by oyster
Jan 05, 2019 7:11
Forum: Windows
Topic: question on call functions in DLL
Replies: 17
Views: 1564

Re: question on call functions in DLL

blush

there is both libray and library in my code, the first one is a typo
by oyster
Jan 05, 2019 1:54
Forum: Windows
Topic: question on call functions in DLL
Replies: 17
Views: 1564

Re: question on call functions in DLL

thanks. It fixes. But there are one further question. Since I declare the long APIs in a include file, for example "xcgui.bi" ' I am "xcgui.bi" Dim shared libray As Any Ptr libray = DylibLoad("xcgui") then tons of functions are declared how can I do DyLibFree(library) s...
by oyster
Jan 04, 2019 4:55
Forum: Windows
Topic: Tiny GUi and tiny Designer
Replies: 25
Views: 12259

Re: Tiny GUi and tiny Designer

I think it could be better if the code is placed on github or some where and with image demo

Go to advanced search