export

Previous topic - Next topic

Hemlos

hard drive search results for cygwin1.dll:
5 copies in glbasic compiler directories, as shown in screenshot below:

[attachment deleted by admin]
Bing ChatGpt is pretty smart :O

trucidare

Ok all fine, sounds like a EditorE bug. We will see what gernot find.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Kitty Hello

It seems you pressed F8 or F5 to build. That makes a Win32 exe file. Press Shift-F8 and select "Win32-dll". It should build fine then.

Schranz0r

Doesn't work Gernot! There is a bug ...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

The Shift+F8, and select Win32-DLL works here...

Schranz0r

Ok works, was my bad xD
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Hemlos

stupid human bugs LMAO


Gernot can you add the shift f8 thing to the export command in the manual? :)

QuoteEXPORT function_name
If you create a DLL, this function will be exposed to the public interface and the wrapper-gbas file will yield it, too.


What exactly does this mean:
'function will be exposed to the public interface '

Does it mean dll will be decompiled into a legible cpp?
Bing ChatGpt is pretty smart :O

Kitty Hello

No. A dll is sort of an exe file w/o main entry point. But you can have a list of functions that are exposed to a readable interface. Thus, you can dynamically link to these functions and use them as if you linked then into your program in the first place.

Hemlos

Thank you for all that, Gernot.

One more question(for now hehe),

The dll file has internal functions, called by other functions, in the dll.
Is that going to work without wrapping them into the public files?
Or do i need to have those internal system functions wrapped into the readable wrapperdll.gbas too?



Bing ChatGpt is pretty smart :O

Hemlos

#24
ok cool that got rid of all the error messages.
The program starts now...
...and results with a windows error, first thing. :(
check screenshot screenshot.jpg


I need to investigate the exact cause...ill be back.


[attachment deleted by admin]
Bing ChatGpt is pretty smart :O

MrTAToad

Could be almost anything :)

Hemlos

Found it....

GETSCREENSIZE and SHOWSCREEN both crashes the dll program.

My api has an internal error checker/messaging system, these 2 commands are needed.

Anyone aware of a workaround?
Bing ChatGpt is pretty smart :O

Schranz0r

you can't export GLB intern functions :D
Only Gernot can help you :)
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Hemlos

Quote from: Schranz0r on 2009-Aug-20
you can't export GLB intern functions :D

Very funny.  :puke:

Is there something that distinguishes commands, as "intern functions" ?
Bing ChatGpt is pretty smart :O

Kitty Hello

Oh dear. I think I was too quick with the idea that a dll might help. If you use graphics functions, I'm uncertain if they use the same window.

I think what we really need is a safe way for gbal. I see what I can do there. Everything else would just "cripple" the libraray.