Tree structure for a win32 application deployment



I was finally able to compile a working gtk+ application in my win32 system.
After a lot of trial and error work on how to include the right GTK framework I was also able to deploy and make it work on a new machine, but I have one more question on this topic: right now I can have my application work by placing the application .exe file in the bin directory along with all the gtk toolkit executables.
I'm not satisfied by this and I'd like to have a different tree:
my application in the root, all the resource files in a directory and all the GTK toolkit in another directory named GTK+.

Right now my working tree is like this:

c:\program files\my_app
                      |-Resource
                      |        |-my_resource_file.rc
                      |-GTK+
                           |-bin
                           |   |-all_the_gtk_bin_files.exe
                           |   |-...
                           |   |-my_app.exe
                           |   |-my_app.ini
                           |
                           |-etc
                           |-include
                           |...and so on



I want to have it like this:

c:\program files\my_app
                      |-my_app.exe
                      |-my_app.ini
                      |-Resource
                      |        |-my_resource_file.rc
                      |-GTK+
                           |-bin
                           |-etc
                           |-include
                           |...and so on


Obviusly I tried to move my_app.exe from the GTK bin directory to the root, but I get an error finding libglib-2.0-0.dll.
How can I let my application know that the dlls are in a subdirectory?
--
Regards,
Manuel Ferrero
R&D department

Reer SpA	
Tel.  +39 011 2482215
Fax. +39 011 859867

L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato.
Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato
come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail,
ce ne comunicasse l'errata ricezione.

The unauthorized use of this e-mail is prohibited and could constitute an offence.
If you are not the intended recipient of this message its contents shall be understood as neither
given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]