|
Post by neuropysch on May 7, 2023 6:27:31 GMT -6
rcbasic is quite easy to learn and use there are still some people who know how to program in basic and only basic it has great potential for non-game programming on windows if it has native GUI functions it can also be used for making small database programs if it has inbuit easy SQL functions
|
|
|
Post by aurel on May 7, 2023 7:10:36 GMT -6
it has it can hmmm.... that sounds like chatGPT
|
|
|
Post by neuropysch on May 7, 2023 7:30:53 GMT -6
please share link to these resources
the GUI library that i found is based on graphics and not native windows controls?
|
|
|
Post by aurel on May 7, 2023 12:31:26 GMT -6
hi don't get me wrong it was my joke
OK Yes you have right ,the author of RCB n00b made SDL functions aka GUI and present is as demo program as you already see/try ... so as far as i know there is no native wrapper for GUI win32 api functions like i use with o2 I even don't know how to call .dll ...let say if i want to make GUI wrapper DLL that can be connected with RCBasic ..we need to wait what author will say ..right ?
For me is not big problem to made set of GUI functions in a CDCL standard that can be used directly with RCBasic ..of course i can make it in o2 native compiler for Windows. is it now ok ?
all best
|
|
|
Post by n00b on May 7, 2023 18:38:06 GMT -6
Currently I don't have any plans of trying to integrate native Windows controls. It may happen someday so I am not going to say it will never happen.
If you want a modern UI for your rcbasic programs, you can just use HTML and CSS for your UI and use rcbasic for your logic. Alot of applications use HTML/CSS for UI these days like discord or VSCode.
And to answer your other question, SQL is a data query engine. You can use it in most languages. You would just pass your query string the whatever engine you are using (ie. mySQL, terradata, Microsoft SQL server, etc.).
|
|
|
Post by aurel on May 7, 2023 23:33:23 GMT -6
wait a moment @n00b but how they are connected with system? must be in a DLL form or statically linked ? or i have wrong ?
Is there function in RCB like LoadLibrary or IncludeLib or similar?
|
|
|
Post by aurel on May 8, 2023 8:25:15 GMT -6
HTML/CSS for UI these days
@n00b
are you sure ? then why you use wxLib to make RCStudio?
OK ..i saw some very nice editors/IDE-s created with js or HTML/css but they are only for web dev or javascript and they not work on all browsers like many other js/html files
|
|
|
Post by n00b on May 8, 2023 20:47:41 GMT -6
HTML/CSS for UI these days @n00b are you sure ? then why you use wxLib to make RCStudio? OK ..i saw some very nice editors/IDE-s created with js or HTML/css but they are only for web dev or javascript and they not work on all browsers like many other js/html files I didn't build studio this way because I suck at web dev. I can post an example of how to do this tommorow. I would personally suggest just using a different language that supports native gui (like micro(A) ) but if you want to use rcbasic with html/css then you can.
|
|
|
Post by aurel on May 8, 2023 23:21:04 GMT -6
I suck at web too.. but i don't need html/css ...
I would like to know can i use on windows version LoadLibrary() IF i can then all other win api is possible
ps...that is not my suggestion than this guest guy
|
|
|
Post by n00b on May 9, 2023 18:15:47 GMT -6
aurel No, you can't use LoadLibrary(). It would be kinda difficult for me to implement because of how the runtime is built. Also, here is a demo on how to use HTML to make a gui for your RCBasic programs. It uses electron to package the program as an exe for windows. You can also use electron to build it as an app for linux or mac as well I just didn't do it. Windows Program: rcbasic_web_form_demoSource Code: rcbasic_web_form_src.zip (4.39 KB) matty47 - I used your associative array library for parsing the http request. Its in the file dictionary.bas. Thanks again for sharing it.
|
|
|
Post by aurel on May 10, 2023 0:15:00 GMT -6
hi @noob
i can understand that ...but i don't understand how you load SDL library in Windows version? do you use static binding ...sorry if i bothering you with all this but that simply means that is not possible to use any external dll with RCBasic ? do i have right ?
I think that i once looked into RCB code and i find it really complex but some parts i can understand.
|
|
|
Post by n00b on May 10, 2023 9:39:50 GMT -6
I link the SDL library when I am compiling. It looks something like this:
gcc main.cpp theoraplay.c -o rcbasic -lSDL2main -lSDL2 -lSDL2_gfx -lSDL2_image -lSDL2_net -lSDL2_mixer -lSDL2_ttf -logg -lvorbis -lvorbisfile -ltheora -ltheoradec -pthreads -O3
There might be a few other flags that get added from the options I have set in Codeblocks but that is about it. SDL2 has a wrapper for LoadLibrary but the issue is how to map library functions to rcbasic functions which are essentially just pointers in a C++ vector. It is definitely possible but it would involve some time and thought. Lately I have been focused on stability and new features related to the current functions in rcbasic. This would be a major feature that I would have to ignore other features for maybe half a year or so to focus on. I only have so much time so it is difficult to decide how to prioritize it.
|
|
|
Post by aurel on May 10, 2023 10:08:07 GMT -6
Ok nOOb ..and thanks for explanation well it looks very much complex ...i can add it on easy way into micro(A) i guess like any other api functions i already add maybe because micro(A) is just a token interpreter ..? and i already have set of functions in my own win32 api wrapper created in o2 of course o2 is much simplier than C++
ok all best
|
|