Reputation: 11
I'm using Microsoft Visual C++ 2008 Express Edition and I have to work with CUDA technology. I've understood how to work with it creating console applications. But I have no idea how to make it working in win32 applications with forms (dialogs, buttons, labels, etc.) Any idea?
Upvotes: 0
Views: 2587
Reputation: 21138
It looks like you're mixing .net with native, there are a few posts on related subjects such as on stackoverflow and on the NVIDIA forums. One simple solution would be to interface to the CUDA code through a DLL.
Upvotes: 1
Reputation: 79011
Exactly the same way.
Having CUDA in your project does not depend on whether its a console application or a windows application.
Create a new project, right click on it and select "Custom Build Rules..."
In the dialog that opened, locate the "CUDA Build rule" in your SDK directory.
Then, you just add the .cu files to your project and setup the "Cude Build Rule" to build them using the "Tool" option under "Generel" in the properties of the file.
Upvotes: 1