copying functions and classes from my application to executable

hi all,
i have a question:
how can i copy my function for example, f() from my application into executable?
thanks in advance