Hello, People.

Previous topic - Next topic

trucidare

create functionf to export:
Code (glbasic) Select
FUNCTION Mow: a% b% c%
   RETURN a%+b%+c%
ENDFUNCTION

EXPORT Mow


then Create dll

Import your function to GLB
Code (glbasic) Select

FUNCTION foo:
ENDFUNCTION // To quit the MainGame Sub

INLINE
DECLARE_C("Mow",(int,int,int)DGInt);
ENDINLINE

FUNCTION Imported_Mow: a% b% c%
INLINE
    return Mow(a,b,c);
ENDINLINE
ENDFUNCTION



something like this, cant check have no glb.


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

When you create a dll, there will be a wrapper.gbas file. Use this to call the exported function.
Make sure the dll is in the same directory as the exe when you try to load it.

com_1

> Google Translate

I want to say thank you(thanks) to all the creators of(for) the language(GLBasic).
Thanks Gernot, was very cool.

My next language - AutoIT
http://www.autoitscript.com/

All thanks.