calling external kernels

Hi,

I have the following problem:

I have an application and a library. At the moment the user specified kernels are included by the library with #include “…/…/FILENAME”. In order to make the library independent so that i can use this library from different applications, this inclusion has to be erased. So all i want is to pass the kernel functions to the library. Function Pointers or Templates could solve the problem, if they were supported for kernels. Then I found the ModuleManagement in the Driver API, which would work. But changing the hole code to Driver API is the last option.

Have u any ideas how to call the external kernels?

Regards ritchey