Click here to Skip to main content
15,919,778 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Kenan Aksoy27-Nov-07 1:59
Kenan Aksoy27-Nov-07 1:59 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
Cedric Moonen27-Nov-07 2:14
Cedric Moonen27-Nov-07 2:14 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
krmed27-Nov-07 2:10
krmed27-Nov-07 2:10 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
Cedric Moonen27-Nov-07 2:17
Cedric Moonen27-Nov-07 2:17 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
krmed27-Nov-07 6:58
krmed27-Nov-07 6:58 
GeneralI understand the point, but Pin
CPallini27-Nov-07 3:02
mveCPallini27-Nov-07 3:02 
GeneralRe: I understand the point, but Pin
krmed27-Nov-07 5:47
krmed27-Nov-07 5:47 
GeneralRe: I understand the point, but Pin
CPallini27-Nov-07 6:04
mveCPallini27-Nov-07 6:04 
krmed wrote:
Well, perhaps that would be ok, but if the file size is large (2 GB) the new of a 2GB char array would probably fail, and you don't need anywhere near that many characters to hold a file size.


Of course the buffer can't be sized equal to file dimension, have you missed my aknowledge about your point?


That stated, my post completely agree with your bottom line:
krmed wrote:
Perhaps a fixed buffer size of say [MAX_PATH_LEN] (which is 256) would be more than enough characters to hold any file size.


Smile | :)


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: I understand the point, but Pin
krmed27-Nov-07 6:56
krmed27-Nov-07 6:56 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
David Crow27-Nov-07 3:28
David Crow27-Nov-07 3:28 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Mark Salsbery27-Nov-07 7:01
Mark Salsbery27-Nov-07 7:01 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Hamid_RT29-Nov-07 4:07
Hamid_RT29-Nov-07 4:07 
Questionwrite to a text file Pin
tasumisra27-Nov-07 1:06
tasumisra27-Nov-07 1:06 
AnswerRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:09
Cedric Moonen27-Nov-07 1:09 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:17
tasumisra27-Nov-07 1:17 
AnswerRe: write to a text file Pin
Hamid_RT27-Nov-07 1:10
Hamid_RT27-Nov-07 1:10 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:20
tasumisra27-Nov-07 1:20 
GeneralRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:27
Cedric Moonen27-Nov-07 1:27 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:34
tasumisra27-Nov-07 1:34 
GeneralRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:43
Cedric Moonen27-Nov-07 1:43 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:49
tasumisra27-Nov-07 1:49 
GeneralRe: write to a text file Pin
Kenan Aksoy27-Nov-07 2:02
Kenan Aksoy27-Nov-07 2:02 
GeneralRe: write to a text file Pin
David Crow27-Nov-07 3:31
David Crow27-Nov-07 3:31 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 21:22
tasumisra27-Nov-07 21:22 
GeneralRe: write to a text file Pin
David Crow28-Nov-07 2:28
David Crow28-Nov-07 2:28 

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.