XP, PHP & C++

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Possibly the matter is: http://bugs.php.net/bug.php?id=25235

[edit]
just tested:

Code: Select all

$a=$api->registerfunction("int MessageBoxA (long hwnd,string &lpTitle,string &lpCaption,int uType) From User32.dll"); 
  $msg="qqq\0";
  $api->MessageBoxA(NULL,$msg);
It does pop message box (title contains crap, of course, and there are 3 buttons, but it works).

Tested on:
  • PHP/4.3.2 (CLI version)
  • WinXP Pro SP1
[/edit]
[one more edit]
PHP/4.3.4 behaves exactly the same
[/one more edit]
Toune
Forum Newbie
Posts: 5
Joined: Fri Dec 12, 2003 1:54 am

It a bug

Post by Toune »

Hi,

Your true , thank's : it a bug :? ...

Describe at http://bugs.php.net/bug.php?id=25235

My message box bug if I put the caption ...

But I don't know how set a value to the caption ... If you have an idea ! :P

Thank for your help

Toune
Post Reply