How to display Html file with PtWebClient?

hello !!
So, I have an application on QNX6 and I want to display on html file in a window (this html file is on my hard disk)
I use a PtWebClient widget to do this.
my code is(when we open the window):

char tmp[300];
sprintf(tmp,"/home/toto/truc.html"); //html file path on the hard disk
PtSetResources( ABW_webClient1, 1, args);

[i]When I launch my application there is nothing in my window.
Does anybody have an idea or a example with PtWebClient or… ???


Are you using the right kind of webserver?

try to set Pt_ARG_WEB_SERVER to vserver either in PhAB or by
PtSetResource(ABW_webClient1, Pt_ARG_WEB_SERVER, “vserver”,0);

This way it works on my 6.3 box.

It’s OK , my source:

PtSetArg( &args[0], Pt_ARG_WEB_SERVER, “vserver”, 0 );
PtSetResources( ABW_webClientl1, 1, args );
PtSetArg(&args[0],Pt_ARG_WEB_GET_URL,tmp , Pt_WEB_ACTION_DISPLAY );
PtSetResources( ABW_webClientl1, 1, args);