- Also, is there already a dll for extended dll calling functionality, which enables passing more types of arguments (especially DWORDs, 32 bit values)? Because I see many dlls simply wrapping winapi commands to the Game Maker calling convention (all numeric arguments are doubles). We shouldn't need to do this.
- And is there a dll/extension for opening the a default windows console (you know the cmd.exe style one) window for the application and writing to stdout and reading from stdin.
- And any dll that wraps sprintf?
- And can extension functions that are defined in a dll have a variable argument count? EDIT: Apparently no (you can only set 0-16 args for dll functions in extmaker). But I wrapped around this by using a gml function and having the dll function take all args:
external_call(global._GMDLL_dll_call, argument[0], // fid argument[min(1,argument_count-1)], argument[min(2,argument_count-1)], argument[min(3,argument_count-1)], argument[min(4,argument_count-1)], argument[min(5,argument_count-1)], argument[min(6,argument_count-1)], argument[min(7,argument_count-1)], argument[min(8,argument_count-1)], argument[min(9,argument_count-1)], argument[min(10,argument_count-1)] // TODO: allow specifying more with function...);
However you can only have 11 args like this...
Edit: GM DLL solves many of these issues and provides the discussed functionality.
Edited by Master Xilo, 22 July 2012 - 05:53 PM.











