Click here to Skip to main content
15,900,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: x to Bin ? or x to Hex To Bin Pin
ddmcr11-Apr-05 3:44
ddmcr11-Apr-05 3:44 
GeneralRe: x to Bin ? or x to Hex To Bin Pin
David Crow11-Apr-05 4:18
David Crow11-Apr-05 4:18 
GeneralRe: x to Bin ? or x to Hex To Bin Pin
ddmcr11-Apr-05 4:36
ddmcr11-Apr-05 4:36 
GeneralRe: x to Bin ? or x to Hex To Bin Pin
liquid_11-Apr-05 6:46
liquid_11-Apr-05 6:46 
Generalquestion about finding the app's path Pin
Green Fuze11-Apr-05 0:26
Green Fuze11-Apr-05 0:26 
GeneralRe: question about finding the app's path Pin
ThatsAlok11-Apr-05 0:36
ThatsAlok11-Apr-05 0:36 
GeneralRe: question about finding the app's path Pin
Green Fuze11-Apr-05 1:41
Green Fuze11-Apr-05 1:41 
GeneralRe: question about finding the app's path Pin
ThatsAlok11-Apr-05 1:58
ThatsAlok11-Apr-05 1:58 
Green Fuze wrote:
does it get the LPTSTR from the szCurrentDirectory CString???

Yes, I allocate the temporary LPSTR buffer of SIZE MAX_PATH from CString


Green Fuze wrote:
szCurrentDirectory.ReleaseBuffer();

Actually using this we instruct the CString variable to take control of temporary BUFFER


Green Fuze wrote:
I did understand that you need to release the buffer in order to get rid of the filename and get only the whole path.

Nope, I will do that in next step!


Green Fuze wrote:
szCurrentDirectory.Left do?
Its copy n character from left of string i.e. let you string="codeproject"; and i ask for string.left(4); then this string return me "code"


Green Fuze wrote:
ReverseFind

actually I try to find last '\' in the string as you already knows that filename with directory is something like this c:\codeproject\cp\filename.exe so, using ReverseFind function I find the last '\' and it return me exact location of that '\' and using CString::Left I copy required string into new variable.








[Vote One Here, Complete my Survey....]

Alok Gupta
visit me at http://www.thisisalok.tk

         "I Think Believe this Will Help"
GeneralRe: question about finding the app's path Pin
Green Fuze11-Apr-05 3:55
Green Fuze11-Apr-05 3:55 
GeneralRe: question about finding the app's path Pin
ThatsAlok11-Apr-05 19:02
ThatsAlok11-Apr-05 19:02 
GeneralRe: question about finding the app's path Pin
David Crow11-Apr-05 3:09
David Crow11-Apr-05 3:09 
GeneralRe: question about finding the app's path Pin
Green Fuze12-Apr-05 0:57
Green Fuze12-Apr-05 0:57 
Generalget filenames from folder Pin
Anonymous11-Apr-05 0:18
Anonymous11-Apr-05 0:18 
GeneralRe: get filenames from folder Pin
ThatsAlok11-Apr-05 0:32
ThatsAlok11-Apr-05 0:32 
GeneralRe: get filenames from folder Pin
ddmcr11-Apr-05 0:32
ddmcr11-Apr-05 0:32 
GeneralRe: get filenames from folder Pin
Anonymous11-Apr-05 0:58
Anonymous11-Apr-05 0:58 
GeneralCAsyncSocket connect time Pin
GDavy11-Apr-05 0:11
GDavy11-Apr-05 0:11 
GeneralRe: CAsyncSocket connect time Pin
ThatsAlok11-Apr-05 0:17
ThatsAlok11-Apr-05 0:17 
GeneralFormatMessage FORMAT_MESSAGE_FROM_STRING Pin
asdf175311-Apr-05 0:07
asdf175311-Apr-05 0:07 
GeneralRe: FormatMessage FORMAT_MESSAGE_FROM_STRING Pin
Joel Holdsworth11-Apr-05 2:50
Joel Holdsworth11-Apr-05 2:50 
GeneralA question on visual studio Pin
PrashantJ10-Apr-05 23:45
PrashantJ10-Apr-05 23:45 
GeneralRe: A question on visual studio Pin
toxcct11-Apr-05 0:02
toxcct11-Apr-05 0:02 
GeneralRe: A question on visual studio Pin
PrashantJ11-Apr-05 0:04
PrashantJ11-Apr-05 0:04 
GeneralRe: A question on visual studio Pin
toxcct11-Apr-05 0:10
toxcct11-Apr-05 0:10 
GeneralRe: A question on visual studio Pin
PrashantJ11-Apr-05 0:37
PrashantJ11-Apr-05 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.