Click here to Skip to main content
15,914,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Shared Dll to Static Lib Pin
Cedric Moonen7-Sep-07 23:22
Cedric Moonen7-Sep-07 23:22 
QuestionHow to begin DirectX Pin
kcynic7-Sep-07 20:59
kcynic7-Sep-07 20:59 
AnswerRe: How to begin DirectX Pin
Nishad S8-Sep-07 0:57
Nishad S8-Sep-07 0:57 
GeneralRe: How to begin DirectX Pin
kcynic8-Sep-07 2:16
kcynic8-Sep-07 2:16 
Questionkernel mode dll Pin
samira forooghi7-Sep-07 19:44
samira forooghi7-Sep-07 19:44 
QuestionSome ambiguities with MFC CString class. [modified] Pin
Hamed Musavi7-Sep-07 19:20
Hamed Musavi7-Sep-07 19:20 
AnswerRe: Some ambigituies with MFC CString class. Pin
chandu0047-Sep-07 19:26
chandu0047-Sep-07 19:26 
GeneralRe: Some ambigituies with MFC CString class. Pin
Hamed Musavi7-Sep-07 19:36
Hamed Musavi7-Sep-07 19:36 
Thanks for quick reply.


chandu004 wrote:
i dont suggest to use CString in a structure.

Why?

I thought when passing a structure that has a CString to a function(as a parameter), the size of the CString is unknown, if the function changes the data, things might get worst because needed size is more than amount of already allocated memory, so an overflow. But these are just some ideas and probably wrong, because the same thing can work fine in a class.

I was wondering what happens exactly in CString class.


// "Life is very short and is very fragile also." Yanni
while (I'm_alive)
{
cout<<"I love programming.";
}

GeneralRe: Some ambigituies with MFC CString class. Pin
Cedric Moonen7-Sep-07 22:57
Cedric Moonen7-Sep-07 22:57 
AnswerRe: Some ambiguities with MFC CString class. Pin
progDes7-Sep-07 20:26
progDes7-Sep-07 20:26 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi7-Sep-07 20:53
Hamed Musavi7-Sep-07 20:53 
AnswerRe: Some ambiguities with MFC CString class. Pin
progDes7-Sep-07 22:29
progDes7-Sep-07 22:29 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 4:11
Hamed Musavi8-Sep-07 4:11 
AnswerRe: Some ambiguities with MFC CString class. Pin
John R. Shaw7-Sep-07 22:07
John R. Shaw7-Sep-07 22:07 
GeneralRe: Some ambiguities with MFC CString class. [modified] Pin
Hamed Musavi8-Sep-07 4:08
Hamed Musavi8-Sep-07 4:08 
AnswerRe: Some ambiguities with MFC CString class. Pin
bob169728-Sep-07 4:36
bob169728-Sep-07 4:36 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 4:41
Hamed Musavi8-Sep-07 4:41 
GeneralRe: Some ambiguities with MFC CString class. Pin
progDes8-Sep-07 6:05
progDes8-Sep-07 6:05 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 18:45
Hamed Musavi8-Sep-07 18:45 
AnswerRe: Some ambiguities with MFC CString class. Pin
Mark Salsbery8-Sep-07 6:42
Mark Salsbery8-Sep-07 6:42 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 9:04
Hamed Musavi8-Sep-07 9:04 
GeneralRe: Some ambiguities with MFC CString class. Pin
Mark Salsbery8-Sep-07 10:59
Mark Salsbery8-Sep-07 10:59 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi8-Sep-07 15:53
Hamed Musavi8-Sep-07 15:53 
GeneralRe: Some ambiguities with MFC CString class. Pin
Mark Salsbery9-Sep-07 6:51
Mark Salsbery9-Sep-07 6:51 
GeneralRe: Some ambiguities with MFC CString class. Pin
Hamed Musavi9-Sep-07 18:11
Hamed Musavi9-Sep-07 18:11 

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.