Thanks Paul. Got your point. I changed the directory arrangement. Now its
fine. Thanks again.

Cheers,
V

2009/9/24 Paul Herring <[email protected]>

>
>
> On Thu, Sep 24, 2009 at 6:14 AM, Vishva 
> <[email protected]<vishvaya%40gmail.com>>
> wrote:
> > Dear all,
> >
> > This might be a simple question..
> > Suppose I have a project directory like this. The ex.cpp file is located
> @
> > subDirC1
> >
> > ProjDir
> > |__DirA
> > |__DirB
> > |__DirC
> >           |__subDirC1~ex.cpp
> >
> > I want to include the path of a dll in the DirA directory within the code
> of
> > ex.cpp
> > like this
> >
> > char path[] = "ProjDir\\DirA\\ex.dll";
> >
> > Could you please tell me how to retrieve the project directory path of
> DirA
>
> You normally wouldn't; you'd install the program such that the dll is
> at a known place such as %SystemDir% or in the same directory as the
> exe.
>
> However as a workaround if this directory structure is to remain you
> could either work it out from the path of the exe from within the exe
> (argv[0]) or use "../DirA/ex.dll"
>
> --
> PJH
>
> http://shabbleland.myminicity.com/
> http://www.chavgangs.com/register.php?referer=9375
> http://www.kongregate.com/?referrer=Shabble
>  
>


[Non-text portions of this message have been removed]

Reply via email to