#21504 [Opn]: W32api extension documentation is obsolete

From: Date: Mon, 12 May 2003 19:00:14 +0000
Subject: #21504 [Opn]: W32api extension documentation is obsolete
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969353397@lists.php.net to get a copy of this message
ID: 21504 User updated by: thingol at mail dot ru Reported By: thingol at mail dot ru Status: Open Bug Type: Documentation problem PHP Version: 4.3.2 New Comment: I notice that I use wrong syntax. But: <?php dl("php_w32api.dll"); $api = new win32(); $api->RegisterFunction("long MessageBoxA (long hWnd, string &lpText, string &lpCaption, long uType) From User32.dll", 0); $str = "Test, oh my god"; $api->MessageBoxA(NULL, $str, $str, 0); ?> with new ext shows no errors and no messagebox. <?php @dl("php_w32api.dll"); w32api_register_function("User32.dll", "MessageBoxA", "long"); $str = "Test, oh my god"; MessageBoxA(NULL, $str, $str, 0); ?> with old ext shows messagebox. Previous Comments: ------------------------------------------------------------------------ [2003-05-12 13:44:26] thingol at mail dot ru This documentation gives no sample. I try this code and it don't work: <?php dl("php_w32api.dll"); Win32::RegisterFunction("long MessageBox (long hWnd, string lpText, string lpCaption, long uType) From User32.dll", 0); $str = "Test, oh my god"; echo Win32::MessageBox(NULL, $str, "Information", 0); ?> PHP 4.3.2RC1 ------------------------------------------------------------------------ [2003-05-12 13:29:00] psychosos at gmx dot at Jan Kleinsorge has made some documentation available at http://mynnga.de/tom/loves/wob/w32api.txt . (I got the link to it from his comment on the w32api documentation page at http://www.php.net/manual/en/ref.w32api.php) ------------------------------------------------------------------------ [2003-03-11 15:00:30] gk at gknw dot de Hey, now three months later after first bug report #21016 and still no docu, no working sample or something else???? Is it that hard thing to modify the sample for the new extension??? G. ------------------------------------------------------------------------ [2003-03-07 07:56:22] gk at gknw dot de I also would like to get a sample since the stuff in the docu isnt working... I've tried everything now; ------------------------------------------------------------------------ [2003-01-07 21:53:57] thingol at mail dot ru New (rewritten) W32api extension is totally undocumented and have no examples. Is it working? If yes, is it possible to give us a little example of using rewritten extension? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21504&edit=1

« previous php.doc (#969353397) next »