Page 1 of 1

where 'imdisplay' process the arguments?

Posted: 2012-05-05T15:31:27-07:00
by efa
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:

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;
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?

Re: where 'imdisplay' process the arguments?

Posted: 2012-05-07T22:43:02-07:00
by anthony
Perhaps you like to go further and actually program and improve it. I believe their is no programmer looking after the command to a great extent.

Converting it in to a 'windows' coder would be even better :-)

Re: where 'imdisplay' process the arguments?

Posted: 2012-05-08T00:51:24-07:00
by efa
My user attept are at:
viewtopic.php?f=1&t=20867&p=84347#p84347
I think I'm a good driver and CLI coder, but I have little experience in GUI as GTK programmer.
The major problem I have completely 0 experience in Win32 programming.

Who wrote 'imdisplay' ? I haven't found a copyright or so.
I also tried to wrote to Michael S. Noble and Rafael Laboissiere contact found @ http://dev.man-online.org/man1/imdisplay/
but the debian contact was bounced. Michael never answers. He is a IM developer now?