1 | initial version |
Winforms is a bit different from the console applications. They do not allow you to use the include of the opencv namespace at the top of the header file, wich generates some rules you need to keep, before you can use opencv functionality inside the header.
Have you put cv:: in front of all of you openCV code? Without, the compiler will not know where to look for the cvLoadImage functionality.
Also if it is possible, switch to the C++ interface, since the C-interface is deprecated and will get removed.