Originally Posted By: Ch40zzC0d3r
Then you can just call GetModuleHandle/GetProcAddress on "acknex.dll" and "wait" to get the function address and call it.

I am pretty sure that wait would not work as it works in lite-c.

Easiest way to do it as hellx said, use only one wait in your lite-c main, write your thing in c++ as an engine plugin, create a function (something like doFrame() ) and call it from lite-c in your main while-wait loop. Now you have a function that's called every frame, and you do not need any other scheduling/wait stuff. Then create an interface with an onFrame function and implement that interface in your entity classes then put them each of them into an array and call all of your entity instance's onFrame on that doFrame function. Code you normally write inside while - wait loops in your actions goes inside that onFrame now. You can also add further functions to handle creation/destruction functions to the interface. creation function is for code you put before your while-wait loops in your lite-c code and destruction function is for code you write after the loop.

you do not need to expose anything other than doFrame to lite-c. (maybe an init and a destroy function too.)


3333333333