Posted By: LazyDog
calling functions in a .DLL - 03/15/07 21:51
I did a lot of work for the engine, NOT a plugin so I was using native data types instead of Var and using procedures or Void for routines that didn't need to return anything.
I took the code and created a dll to test using it from c-script then. No Problems, it all works as I expected it, I just happened to realize that some of those routines are procedures or Void.
What I'm curious about is that the manual says that all dll functions you write must me of the type: DLLFUNC var ldexpc(var x,var n).
I realized that I wrote dll routines that were not like this but they are found by the script and WORK! Am I just lucky and should change them or is this okay to leave as is?
I took the code and created a dll to test using it from c-script then. No Problems, it all works as I expected it, I just happened to realize that some of those routines are procedures or Void.
What I'm curious about is that the manual says that all dll functions you write must me of the type: DLLFUNC var ldexpc(var x,var n).
I realized that I wrote dll routines that were not like this but they are found by the script and WORK! Am I just lucky and should change them or is this okay to leave as is?
