DLLs - initialised exports

BlitzMax Forums/BlitzMax Programming/DLLs - initialised exports

Tom(Posted 2005) [#1]
I'm still messing about with creating DLL plugins, currently I'm still having to use a small amount of C code to define a struct symbol that *must* be exported to identify the DLL as a valid plugin, it's defined in C like so:
ModuleDescriptor _mod_descrip =
 {
    MOD_SYSSYNC,
    MOD_SYSVER,
    MOD_MACHINE,
    Startup,
    Shutdown,
    ServerDesc
 };


Sweenie's pointed out to me that at link time, the struct is filled with the necessary data. I've built this type in Max and filled it with the correct info, but I'm wondering if/how I can export it just as the C version does, i.e, already filled with the data.

Cheers
Tom