Re: Problem: GetCurrentDirectory or any other similar function in eVC++4.0 by r_z_aret
r_z_aret
Sat Sep 20 13:23:36 CDT 2003
Windows CE has _no_ support for current directory. Never has. So you
need to use full paths for all calls that reference files. If you pass
NULL as the first argument to GetModuleFileName, you can get the full
path for your executable, and can parse that to get the directory.
On Fri, 19 Sep 2003 10:05:12 -0600, "JohnL" <zheliu@shaw.ca> wrote:
>Hi All,
>
>I am writting applications for PPC2003 via eVC++4.0.
>
>I tried to get the current directory by function GetCurrentDirectory(..),
>but I failed. After compilation I got "error C2065: 'GetCurrentDirectory' :
>undeclared identifier". I guess eVC4.0 does not support this function since
>I could not find it in Help. Does anybody know how to use this function, or
>any other function under eVC4.0 to get current directory or position?
>
>Thanks in advance.
>
>John
>
>
>//My codes:
>
> //Test
> DWORD nBufferLength;
> LPTSTR lpBuffer;
>
> GetCurrentDirectory(
> nBufferLength,
> lpBuffer
> );//Test
>
>
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com