Hi,
I don't know if what's following is a bug.
I crash many time my computer using API GetMenuString_
This API needs a buffer for string result.
Code: Select all
buffer.s
GetMenuString_(MenuID,#Menu2,@buffer,81,#MF_BYCOMMAND)If you assign a value to buffer, then the API run well.
Code: Select all
buffer.s=""
GetMenuString_(MenuID,#Menu2,@buffer,81,#MF_BYCOMMAND)In my opinion, it's a bug because 'buffer' is declared before the API calling and API has to use 'buffer' to assign a value. I think that PB syntax is respected.
What it is important is to know this.
Denis
