dll with structs

I am using structs inside my CUDA application, and thought I would lift them out and place them in a separate “common” project (using visual studio here) where I keep my shared classes and objects.


  1. “common” project is of c# type, can I have native C in it aswell and have it reached from my CUDA project?

  2. Setting up a separate native C project and reaching it from my CUDA project.

  3. Like 2, but compile it to a dll.

So far I only got alternativ 2 and 3 working as of reaching the native objects from other c# projects, never from my CUDA one. I never get it to recognize the namespace even.

Any thoughts?

“I never get it to recognize the namespace even”

does native c recognize namespaces?