OpenFile(#PB_ANY) error

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

OpenFile(#PB_ANY) error

Post by halo »

What the...???

This code crashes.

result=ReadFile(#PB_ANY,"C:\Windows\explorer.exe")
If result
UseFile(result)
EndIf
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Because u cant access explorer.exe. One of the windows core programs
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post 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!
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

It works fine for me - no crash on PB 3.93, Windows XP Home.

Eric
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply