[Prev][Next][Index][Thread]

HTDialog ...



I am using the libwww in Windows so I want to have dialog boxes to prompt user for informations...

In HTDialog.c there's some functions to redefine so I have done it :

PUBLIC BOOL PromptDialog (HTRequest * request, HTAlertOpcode op,
				int msgnum, CONST char * dfault, void * input,
				HTAlertPar * reply)
{
	if (msgnum == HT_MSG_FILENAME)
		{
		// filename to save
		... code to show my dialog box
		}
}


main (  )
 {
	// .... some code 

	HTAlert_add(PromptDialog, HT_A_PROMPT);

	// rest of code ...

}

Doing that I was hoping to have my dialog box appear when an unknown MIME type was receive but instead all
goes to an HTBlackHole ... without my box displayed !
The trace give me this :
-----------------------
MIMEParser.. Convert image/x-xbitmap to www/present
StreamStack. Constructing stream stack for image/x-xbitmap to www/present
BlackHole... Created
Read Socket. Target returns 29999
---------------------

If I remove my :
	HTAlert_add(PromptDialog, HT_A_PROMPT);

I get the following trace :
-------------------------
MIMEParser.. Convert image/x-xbitmap to www/present
StreamStack. Constructing stream stack for image/x-xbitmap to www/present
Please give name of file to save in: (RETURN for [/tmp/884--115791.xbm]) BlackHole... Created
Read Socket. Target returns 29999
-----------------------------

Even more strange : if I receive an unknown type like x-world/x-vrml all goes directly in an HTBlackHole
in the two cases !!!


Where am I wrong in my implementation ?

Thanks