Code: Select all
The file looks like this:
// ex3.cpp : main project file. #include "stdafx.h" #include "Form1.h" #include <Magick++.h> using namespace ex3; using namespace Magick; [STAThreadAttribute] int main(array<System::String ^> ^args) { // Enabling Windows XP visual effects before any controls are created Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); // Create the main window and run it Application::Run(gcnew Form1()); InitializeMagick(*argv); Image master; master.read("C:₩₩abc.jpg"); master.addNoise(ImpulseNoise); master.write("C:₩₩abc_magic.jpg"); return 0; }
InitializeMagick(*argv);
the error message what 'argv' undeclared identifier. In this case, what am I supposed to do for solving?