|
Post by Darkjester on May 29, 2009 15:21:39 GMT -5
How do you utilize the structure fields of the sdk? i dont understand how they work at all
|
|
|
Post by matthew on May 29, 2009 15:32:54 GMT -5
Are you asking how to use a Structure in a dll?
If you are, you'll find a file called StructureTestDLL.cpp in the Examples folder of the DLL SDK.
|
|
|
Post by Darkjester on May 29, 2009 15:33:25 GMT -5
i more or less wanna know what i can use them for, and limitations and such, are you gettting on IM?
|
|
|
Post by matthew on May 29, 2009 15:36:34 GMT -5
I'm on now.
|
|
|
Post by DJLinux on May 29, 2009 15:45:07 GMT -5
first you must register the "Name" of the struc and a major and minor number i use 1,0 in all my codes gHandle = registry.RegisterStructure("MyStruc", 1, 0); // // now you must add your struc fields int,string,float,other struct ... // registry.AddStrucField("MyNumber", DLL_BASIC4GL_EXT_INT); registry.AddStrucField("MyFloat", DLL_BASIC4GL_EXT_FLOAT); registry.AddStrucField("MyByte", DLL_BASIC4GL_EXT_BYTE); if you compile it as plug in you will get this struc type MyStruc dim MyNumber dim MyFloat# dim MyByte end type take a look to: DLL SDK\Examples\StructureTestDLL.cpp Joshy
|
|
|
Post by DJLinux on May 29, 2009 15:48:51 GMT -5
here are the same in FreeBASIC
gHandle=RT(MyStruc,1,0) RTIF(MyInt) RTFF(MyFloat) RTBF(MyByte)
|
|
|
Post by Darkjester on May 29, 2009 16:05:04 GMT -5
how to call elements?
|
|
|
Post by DJLinux on May 29, 2009 16:09:43 GMT -5
do you mean how to get/set a struc as param? Joshy
|
|
|
Post by Darkjester on May 29, 2009 16:12:46 GMT -5
i mean like access elements and just plain use it for something, thnx for the help so far
|
|