wpf Perm-Method / calling method peramently
===

I want to use a .dll created with c++/cli that includes normal c code in an c# wpf project.
A function of the c code needs permanent calling. This function was orginally called in an endless loop in the main function of a c command-line-application. 

How do I call a function permanently from a wpf c# project without interfering with the rest of the application? I guess that should be pretty easy but Im new to wpf and fairly new to .Net.