Re: [Mingw-w64-public] finding the data file

2015-06-19 Thread Max S.
I'm not a win user, but it looks to me like your problem is that on one machine the file is located at D:\\Program Files\\ArbolOne\\Sound\\KimPossible.wav and on the other at C:\\Program Files\\ArbolOne\\Sound\\KimPossible.wav You could solve this problem by using relative path. Your executable i

Re: [Mingw-w64-public] finding the data file

2015-06-19 Thread Riot
In future can i recommend boost::filesystem to deal with your os-independent paths On 18 Jun 2015 22:45, "Hotmail (ArbolOne)" wrote: > I found the solution, the answer to my problem is > getenv("ARBOLONE") > > Thanks folks > > -Original Message- > From: Max S. > Sent: Thursday, June 18, 2

Re: [Mingw-w64-public] finding the data file

2015-06-19 Thread Ruben Van Boxem
2015-06-19 0:32 GMT+02:00 Jose Alf. : > You can get rid of the environment variable using a win32 api call as > explained here: > > > http://stackoverflow.com/questions/2647429/c-windows-path-to-the-folder-where-the-executable-is-located > > > > On Thursday, June 18, 2015 4:45 PM, Hotmail (Arbol

Re: [Mingw-w64-public] finding the data file

2015-06-18 Thread Jose Alf.
You can get rid of the environment variable using a win32 api call as explained here: http://stackoverflow.com/questions/2647429/c-windows-path-to-the-folder-where-the-executable-is-located On Thursday, June 18, 2015 4:45 PM, Hotmail (ArbolOne) wrote: I found the solution, the ans

Re: [Mingw-w64-public] finding the data file

2015-06-18 Thread Hotmail (ArbolOne)
I found the solution, the answer to my problem is getenv("ARBOLONE") Thanks folks -Original Message- From: Max S. Sent: Thursday, June 18, 2015 5:12 PM To: Hotmail (ArbolOne) Cc: MinGW-64 Mailinglist ; gcc-help Mailing List Subject: Re: finding the data file I'm not a win user, but it l

Re: [Mingw-w64-public] finding the data file

2015-06-18 Thread Hotmail (ArbolOne)
I found the solution, the answer to my problem is getenv("ARBOLONE") Thanks folks -Original Message- From: Hotmail (ArbolOne) Sent: Thursday, June 18, 2015 4:15 PM To: MinGW-64 Mailinglist ; gcc-help Mailing List Subject: [Mingw-w64-public] finding the data file This q

[Mingw-w64-public] finding the data file

2015-06-18 Thread Hotmail (ArbolOne)
This question is exclusively for Win users. OK, having said that, I have a desktop and a laptop. In the desktop I use MinGW64 and the GCC compier as well as CodeBlock, but on the laptop I use VS2015 and VC++. In my desktop I wrote a program that plays a sound file, the structure of the file dire