initializeMagick(*argv) undeclared identifier error

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
2049651
Posts: 29
Joined: 2015-10-20T07:29:42-07:00
Authentication code: 1151

initializeMagick(*argv) undeclared identifier error

Post by 2049651 » 2015-10-26T01:29:34-07:00

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? 

Post Reply