Page 1 of 1

OpenFile(#PB_ANY) error

Posted: Thu Apr 07, 2005 7:38 pm
by halo
What the...???

This code crashes.

result=ReadFile(#PB_ANY,"C:\Windows\explorer.exe")
If result
UseFile(result)
EndIf

Posted: Thu Apr 07, 2005 7:40 pm
by Bonne_den_kule
Because u cant access explorer.exe. One of the windows core programs

Posted: Thu Apr 07, 2005 7:43 pm
by halo
I just used that as an example, because everyone has it. Change the file name to something else and test it.

I am using PB 3.90. I want to upgrade, but my username/password no longer work!

Posted: Thu Apr 07, 2005 8:59 pm
by ebs
It works fine for me - no crash on PB 3.93, Windows XP Home.

Eric

Posted: Thu Apr 07, 2005 9:13 pm
by PB
> I want to upgrade, but my username/password no longer work

Contact Fred or support@purebasic.com to get it resolved.
Please don't post bugs found in obsolete versions... there's
no point.