EDN Admin
Well-known member
<P><FONT face="Geneva, Arial, Sans-serif" size=2>Hi,</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif" size=2> Im trying to get directory/path from where application is currently running. Im using following code:</FONT></P><FONT color=#339966>
<P><FONT size=2>TCHAR DirBuffer[50];
DWORD dwret;
dwret = GetCurrentDirectory(50,DirBuffer);</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif" color=#000000 size=2> BTW, Im getting "GetCurrentDirectory" from "System::IO" namespace. I tried in debug mode and could verify that the function was functionning properly and is giving expected result. My problem here is that I dont know how to convert the DirBuffer variable which is a TChar into a String variable. Any clue?</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif" color=#000000 size=2>Thanks in advance,</FONT></P>
<P><FONT size=2><FONT color=#000000><FONT face="Geneva, Arial, Sans-serif Stéphane</FONT>
</FONT> </FONT></P></FONT>
View the full article
<P><FONT face="Geneva, Arial, Sans-serif" size=2> Im trying to get directory/path from where application is currently running. Im using following code:</FONT></P><FONT color=#339966>
<P><FONT size=2>TCHAR DirBuffer[50];
DWORD dwret;
dwret = GetCurrentDirectory(50,DirBuffer);</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif" color=#000000 size=2> BTW, Im getting "GetCurrentDirectory" from "System::IO" namespace. I tried in debug mode and could verify that the function was functionning properly and is giving expected result. My problem here is that I dont know how to convert the DirBuffer variable which is a TChar into a String variable. Any clue?</FONT></P>
<P><FONT face="Geneva, Arial, Sans-serif" color=#000000 size=2>Thanks in advance,</FONT></P>
<P><FONT size=2><FONT color=#000000><FONT face="Geneva, Arial, Sans-serif Stéphane</FONT>
</FONT> </FONT></P></FONT>
View the full article