Discussions related to Visual Prolog
User avatar
Tonton Luc
VIP Member
Posts: 204
Joined: 16 Oct 2001 23:01

Displaying a Dialog from a dLL

Unread post by Tonton Luc »

Hi,

Is it possible to display a Dialog from a dLL ?
I've tryed this without success :

Code: Select all

        Hdl = uncheckedConvert(window,vpi::getattrval(vpiDomains::attr_screen_window)), %        Hdl = uncheckedConvert(window,vpi::getattrval(vpiDomains::attr_win_mdi_client_hwnd)), %        Hdl = uncheckedConvert(window,vpi::getattrval(vpiDomains::attr_task_window)), %        Hdl = uncheckedConvert(window,vpi::getTaskWindow()),         D = dial1::new(toTerm(Hdl)),         D:show()
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

You should use window::getScreenWindow to obtain the screen window.
Regards Thomas Linder Puls
PDC
Post Reply