Jump to content


Photo

Direct Memory access dll?


  • Please log in to reply
No replies to this topic

#1 Master Xilo

Master Xilo

    GMC Member

  • GMC Member
  • 379 posts
  • Version:GM8

Posted 06 July 2012 - 05:50 PM

I'm quite sure I already saw such a dll (that allows allocating a block of memory, then reading values at specific addresses as DWORDs, C-Strings etc.) but I can't seem to find it anymore. Any ideas?

  • 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.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users