dll Question

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

maori
Just can't stay away
Just can't stay away
Posts: 161
Joined: Tue Sep 23, 2008 13:05
Location: Plumstead , UK

dll Question

Postby maori » Mon Aug 10, 2009 19:26

Hi Guys

Is it possible to place the dll files into there own directory what i mean by that is the exe in the apps root dir and within that root dir a folder called dll or whatever
if it is possible could you explain how to do it :oops:



TIA
trying to upgrade to 0.8.2 from 0.7.9 :D

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: dll Question

Postby scriptkid » Tue Aug 11, 2009 08:42

Hi,

Unless your specify a custom path from your application (.exe) itself, windows will not be able find dll's when they are not in your app directory, win32 or your path.

However (i have not tried this) i think you could do the following: launch your .exe from a batch file, in which you add your DLL directory to your system path. That way, i think that Windows will be able to find your file.

HTH!
Check out my released snake game using Cegui!

maori
Just can't stay away
Just can't stay away
Posts: 161
Joined: Tue Sep 23, 2008 13:05
Location: Plumstead , UK

Re: dll Question

Postby maori » Tue Aug 11, 2009 10:25

hiya ScriptKid

thanks for your answer bud

how can i specify a custom path from my exe to do this is?

sorry for the stupid question but i have no idea how :oops:
trying to upgrade to 0.8.2 from 0.7.9 :D

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: dll Question

Postby CrazyEddie » Tue Aug 11, 2009 10:43

I think it depends who is loading the DLLs; if the DLLs are automatically brought in by the system, then the PATH environment variable is key. If the DLLs are 'modules' loaded manually by the app, then you can specify a path in the calls to LoadLibrary or LoadLibraryEx. If you are not making the LoadLibrary calls yourself (i.e. the modules from CEGUI as loaded by CEGUI), then I think again the PATH variable again becomes key.

CE.

maori
Just can't stay away
Just can't stay away
Posts: 161
Joined: Tue Sep 23, 2008 13:05
Location: Plumstead , UK

Re: dll Question

Postby maori » Sat Aug 15, 2009 12:52

heya

Thanks CE yeah it was the cegui dll's i was refering too

thanks for all the answers and the explanations clears it up for me :D
trying to upgrade to 0.8.2 from 0.7.9 :D


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests