OpenGL Control within main Visual Studio project
Hello, here's what I'm trying to do. I want a reusable custom control that draws with OpenGL that I can layout with the Windows Forms Designer in Visual Studio. I want it compiled in the main project rather than in an external dll.
The Windows Form Designer can only handle 32-bit, so I'm compiling with the /clr:safe and clr/imagetype:safe options, which is apparently equivalent to the AnyCPU setting. This is fine up until I add openGL32.lib to the linker's additional dependencies, at which point I get following compile errors:
Warning 1 warning LNK4075: ignoring '/INCREMENTAL' due to '/CLRIMAGETYPE' specification c:\....\Projects\CustomControlTest\CustomControlTe st\LINK CustomControlTest
Error 2 error LNK1181: cannot open input file 'openGL32.h' c:\....\Projects\CustomControlTest\CustomControlTe st\LINK CustomControlTest
Any thoughts? Ta!