Savefilerequester() and Sprite problem [3.91]

Linux specific forum
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Savefilerequester() and Sprite problem [3.91]

Post by remi_meier »

Hello everybody!
1.
I've a problem with the Savefilerequester() under Mandrake 10.0.

Code: Select all

filename.s = SaveFileRequester("Save","","All | *.*",0)

If CreateFile(0,filename)
  WriteString("sali")
Else
  MessageRequester("","")
EndIf
CloseFile(0)
If I type in a name for the file and click save, filename.s is empty!!
If I choose an existing file to overwrite, it returns the name without problems :? But I want to create a new file :evil:

2.
I can compile the example "sprite.pb" without any problems. But if I run it, the screen opens but I can't see any sprite in it :? I installed sdl again but without success :cry:

Can somebody help me please?
greetz
remi
Athlon64 3700+, 1024MB Ram, Radeon X1600
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

I am using Mandrake 10 and I also have the issue with SaveFileRequester.

The sprite example works fine for me though. Did you compile it in the sources directory? The sprite is refereced as if the root is the '/usr/share/purebasic/examples/sources/' directory: LoadSprite(0,"data/Player_1.bmp",0)

-Beach
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

Ok I try the sprite example again later.
I've a new problem: sometimes the MessageRequester is empty 8O
MessageRequester("Finished","Something") sometimes it shows normal and sometimes it's empty.
STRANGE!
I try to install GTK and SDL again...

greetz remi
Athlon64 3700+, 1024MB Ram, Radeon X1600
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

It is hard for me to believe the SaveFileRequester issue is a Mandrake 10 only problem. Has anyone else experienced this issue?
-Beach
Post Reply