Page 1 of 1

initializeMagick(*argv) undeclared identifier error

Posted: 2015-10-26T01:29:34-07:00
by 2049651
Hi. My vs2010 form application has code like this

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; }
But as I know the InitializeMagicK is initialized like as following
InitializeMagick(*argv);

the error message what 'argv' undeclared identifier. In this case, what am I supposed to do for solving?