|
Post by (X) on Feb 27, 2024 16:59:14 GMT 1
DID YOU KNOW #4 : GB32 CREATES & USES LIBRARIES !
This is the transcript of the latest in the DID YOU KNOW series of the YouTube Channel:
|
|
|
Post by larrybtoys on Feb 28, 2024 1:32:57 GMT 1
Good information
|
|
|
Post by Roger Cabo on Mar 4, 2024 14:18:01 GMT 1
I would like to have a tutorial for this topic. With possible problems an solutions as well. And what's important and how to!
|
|
|
Post by (X) on Mar 4, 2024 17:53:06 GMT 1
That is an excellent idea. Does anyone know of a utility that can do that?
|
|
|
Post by (X) on Mar 4, 2024 19:28:40 GMT 1
I may have sourced information incorrectly. Although I know GB32 can create .LG32 files I don't see how to use GB32 to create DLL files.
This paragraph from : en.wikipedia.org/wiki/GFA_BASIC seems adamant that GFA-BASIC for Windows can compile DLL files. It is perhaps only available for an earlier 16 bit version of GFA-BASIC for Windows.
This is an exact quote from the Wiki page:
Apparently, a 16 bit DLL might run on 32 bit but won't run on 64 bit Windows.
Not to worry!
There are ways to create GB32 compatible DLL files using other resources (languages: C++, C#), but, that is beyond my abilities to demonstrate. There are already many, many, many tutorials available that demonstrate the creation of a DLL file.
Sorry for the misleading information. We can't be 100% correct 100% of the time.
|
|
|
Post by Roger Cabo on Mar 7, 2024 9:45:50 GMT 1
No problem for the dells.
But like to know and have a step by step tutorial for the libs! There are some things seems to be take care of, from what I know.
|
|
|
Post by (X) on Mar 7, 2024 10:53:08 GMT 1
As soon as I can get a good screen capture solution going, tutorials should start popping up. The best advice I can offer for now is to rely on the Help Doc and Sample LG32 files. There are a few LG32 related posts on this forum about "special case" problems. I've been working on a 'one button' library update IDE based utility, but, it is still "under construction".
|
|
|
Post by larrybtoys on Mar 7, 2024 11:59:11 GMT 1
Code Snippets are cool. It does not look like there have been any updates on those in a long time. At least it seems like it... gfawhelp.gfa.net/code32.htm
|
|
|
Post by (X) on Mar 7, 2024 13:31:06 GMT 1
|
|
|
Post by Roger Cabo on Mar 17, 2024 21:22:25 GMT 1
It's also possible to create screenshots and place them into obsproject.com (free)
Anyway.. If you know how to create the most simple Library, you can create step by step with some simple screenshots.
I tried to understand this site: gfabasic32.blogspot.com/search/label/Library
But it explain how to create message boxes into a lib. That's far beyond for anyone that doesn't know anything about Libs. And I gave it up at anytime.
// ------------------------------------------------------------------------------------------------------------
How I would do:
1) Create the most easy example eg Add 2 values in a function. Function AddTwoINTValues(val1%, val2%) as INT Return val1% + val2%
2) Create all additional lines for this Lib simple example and compile a Lib with GB32. + Show what important while compiling. + Define the name for the Lib + Compile
3) Add the new Lib inside a new LoadMyLib.g32 source code.
4) Are there any important things to know about using new Lib inside of the LoadMyLib.g32 ? 5) What I have to care about while shipping the lib with my complete compiled package? + Where the Lib have must be placed? (separate folder, same folder, is it possible to rename).. etc.
Then it would be possible to create samples and info for:
+ What are the restrictions of a library? + How are Strings used, do I have to destroy them manually?
+ What happen to pointers? + What happen to inline Assembler? + Can I call system DLLS inside of a lib. + What happen to large arrays?
ChatGPT 4.0 can also create GB32 Libs!
Then loaded it into ChatGPT. But only V4.0 is able to: ChatGPT4.0 - Creates a library in GB32Please note, I never tested this Lib created by ChatGPT! But ChatGPT takes care of all the restrictions in GFABasic32 Libs description.txt (29.22 KB)
But you can also let ChatGPT write Code in GB32! That's funny!
|
|
|
Post by (X) on Mar 18, 2024 15:33:11 GMT 1
Thanks Roger, I looked into "OBS Studio" a while back. It seems better now. I'll give it another try.
OK ! There was a little hickup in the default config, but, after switching to software encoding*; I'm off!
*(I'm trying this out on my usual coding laptop.)
|
|