I have found a "for me very nasty" bug in the PB IDE.
To reproduce it open a new PB File and leave the name as
NoName1.Bas
Add the following code
<code>
#COMPILE EXE '''"p.exe"
FUNCTION WINMAIN (BYVAL hInstance AS LONG, _
BYVAL hPrevInstance AS LONG, _
lpCmdLine AS ASCIIZ PTR, _
BYVAL iCmdShow AS LONG) AS LONG
MSGBOX "Hello NoName1"
END FUNCTION ' WinMain
</code>
Click on Build and Execute and the Messagebox appears.
Now remove the comment in the #Compile directive
and change the MsgBox Statement to
MSGBOX "Hello p".
Click on Build and Execute again.
Regards,
Torsten Rienow
------------------
To reproduce it open a new PB File and leave the name as
NoName1.Bas
Add the following code
<code>
#COMPILE EXE '''"p.exe"
FUNCTION WINMAIN (BYVAL hInstance AS LONG, _
BYVAL hPrevInstance AS LONG, _
lpCmdLine AS ASCIIZ PTR, _
BYVAL iCmdShow AS LONG) AS LONG
MSGBOX "Hello NoName1"
END FUNCTION ' WinMain
</code>
Click on Build and Execute and the Messagebox appears.
Now remove the comment in the #Compile directive
and change the MsgBox Statement to
MSGBOX "Hello p".
Click on Build and Execute again.
Regards,
Torsten Rienow
------------------
Comment