I am trying to link to CUDA from my 3dsmax plugin. But as soon as I have CUDA code in the plugin and link to the CUDA libs the plugin fails to load with error code 126 - procedure not found. Has anybody had any luck with linking to CUDA?
I tried to start 3dsmax in opengl mode, but this doesnt work either.
What I did is I took the template project from the CUDA SDK and dumped my plugin code in. Then I added all the 3dsmax SDK settings. Switched to dll instead of exe and commented out the CUDA main function. I also added the .def file in the project settings.
The CUDA samples all run fine here. And if I exclude the CUDA functions all runs fine in 3dsmax, too.
Any other ideas?