accessing application's functions from inside a dll or plugin

hi.
I wanna write an application-plugin pair .
the plugin should call some application's functions , and retun some values to the host applicatopn.
Please help me .

consider we have 10 rooms(Boxes) and a Camera(Sphere).
and if the camera is inside a room ,other rooms are not visible.
the host application has a function IsCamInsideRoom which determines if a sphere is inside a room or not.
for each room consider a plugin ( dll) .
the application calls 10 dlls to check them against the camera.but how should a dll (room or box) access IsCamInsideRoom in the host applcation?

Please help me .
Provide IsCamInsideRoom() in a separate DLL.
thanks for reply.
but is there any way to provide IsCamInsideRoom() inside the host application ?
Last edited on
If the function is IsCamInsideRoom() is of dll . you can include the library or directly include the dll in the host application . and call the IsCamInsideRoom() function directly . i dont understand the problem in it .
alirakiyan wrote:
is there any way to use Provide IsCamInsideRoom() inside the host application ?

Callback.

You have to 'tell' the DLL the address of IsCamInsideRoom().
Maybe this
http://www.newty.de/fpt/callback.html
helps.
Thank u so much.
Pointer To Function!!!!!! .
Are you coding in C or C++ ?? In particular, how are you communicating with your plugins?
Topic archived. No new replies allowed.