calling functions in a .DLL

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?
Posted By: jcl

Re: calling functions in a .DLL - 03/16/07 07:11

That's no luck, just an over-anxious manual. For A6 the dll functions can return any type - the restriction to var was for A5 plugins only. I'll fix this in the manual.
© 2023 lite-C Forums