From: Joachim W. <wu...@cr...> - 2002-12-12 16:24:52
|
> > The W2000 driver has the option "hwnd" which takes > > as argument a pointer to a HWND handle. To use > > this, one has to convert the pointer through > > something like sprintf(drvopt_arg, "hwnd=3D%x", m_hwnd) > > to a string. It works! Note however one error in my previous mailing: we need "%d", not "%x", because the back conversion will also be done assuming decimal representation of integers. > You mean using plSetOpt() to do it? I'm afraid I don't follow you. > Why don't you just write an API entry (and submit it), say=20 > plDrvOpt("<option_name", "<value>")? Sorry, Joao, I won't do it because the whole option passing mechanism is terribly complicated; someone who understands the whole structure of plcore, plargs &c. could do it in a fraction of the time I would need. - Joachim |