salut,
je poste ici car la section bug est fermé sur le forum francais.
De quoi s'agit il ?
Et bien, quand on fait un programme et qu'on l'enregistre dans le meme repertoire qu'un fichier BMP ou MOD (ou autre) et qu'on appelle ce fichier par "fichier.bmp" sans indiquer son chemin en entier (puisqu'il est dans le meme repertoire que notre .pb), cela ne marche pas toujours !!
Je rencontre un bug qui m'empeche de trouver mon BMP ou MOD !!
Avez vous rencontré ce probleme ??
Bug the way of files
Bug the way of files
Last edited by SPH on Tue Jul 22, 2014 9:02 pm, edited 1 time in total.
http://HexaScrabble.com/
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
Re: Bug chemins de fichiers
No. Just ensures your CurrentDirectory is OK by using "Debug GetCurrentDirectory()". And please post in english here, thank you.
Re: Bug chemins de fichiers
Mon .PB est dans "f:\PB old\old\demo2014\" et un "Debug GetCurrentDirectory()" indique "d:\" !Fred wrote:No. Just ensures your CurrentDirectory is OK by using "Debug GetCurrentDirectory()". And please post in english here, thank you.
My .PB is in "f:\PB old\old\demo2014\" and a "Debug GetCurrentDirectory()" say "d:\" !
http://HexaScrabble.com/
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Bug chemins de fichiers
And please change the French thread title to an English title. Thanks.Fred wrote:please post in english here, thank you.
Yes, why not?SPH wrote:My .PB is in "f:\PB old\old\demo2014\" and a "Debug GetCurrentDirectory()" say "d:\" !
What do you want to achive?
Maybe
Code: Select all
Debug GetPathPart(ProgramFilename())
Re: Bug the way of files
Perhaps:
Code: Select all
SetCurrentDirectory(GetPathPart(ProgramFilename())))