where 'imdisplay' process the arguments?
Posted: 2012-05-05T15:31:27-07:00
hi,
as 'imdisplay' arguments are not documented, I'm trying to understand them by looking at the sources.
Strangely the unix sources doen't contain the IMdisplay.exe related files, and so isn't possible to crosscompile this file with:
./configure --target=i686-pc-mingw32 & make
So I downloaded the "Windows sources" zip file:
http://www.imagemagick.org/download/win ... indows.zip
and found them in '/win2k/IMDisplay' path.
Looking in 'IMDisplay.cpp' main file I found:
I looked for symbols: 'CCommandLineInfo', 'ParseCommandLine' and 'ProcessShellCommand' in all the IM sources, but was not found.
Maybe are defined in Windows headers? I'm not an expert on Win related things, sorry.
So, where is the command line arguments processing in 'imdisplay' sources?
as 'imdisplay' arguments are not documented, I'm trying to understand them by looking at the sources.
Strangely the unix sources doen't contain the IMdisplay.exe related files, and so isn't possible to crosscompile this file with:
./configure --target=i686-pc-mingw32 & make
So I downloaded the "Windows sources" zip file:
http://www.imagemagick.org/download/win ... indows.zip
and found them in '/win2k/IMDisplay' path.
Looking in 'IMDisplay.cpp' main file I found:
Code: Select all
/////////////////////////////////////////////////////////////////////////////
// CIMDisplayApp initialization
BOOL CIMDisplayApp::InitInstance()
{
....
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
...
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
Maybe are defined in Windows headers? I'm not an expert on Win related things, sorry.
So, where is the command line arguments processing in 'imdisplay' sources?