Game Development Community

Loading dll question

by Hans Egermeier · in Torque Game Builder · 06/16/2006 (10:52 am) · 3 replies

Greetings,
I want to load our own *.dll file, but I coudln't find a function which does that in the reference. Can I load *.dll files with Torque script, or do I have to load it in the source files from the engine and recompile it?

Thank you for answers

#1
06/16/2006 (12:26 pm)
You need to do this in C++. Loading the DLL isn't the issue, it's the binding of the functions within it.

You can of course setup some engine code to allow you to do this but you'll obviously need to bind the DLL functions to something meaningful somewhere.

Hope this helps,

- Melv.
#2
06/16/2006 (3:57 pm)
It would be really great if there was a way to add new console functions and objects through a dll.
#3
06/17/2006 (2:47 am)
Ok thank you, then I will try to change the source code and recompile it... If I am succesful, I will post it here, and if not... I will post it too ;-)