Click here to Skip to main content
14,663,965 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: asign to return value Pin
CalinNegru(fearless_)3-May-20 3:26
MemberCalinNegru(fearless_)3-May-20 3:26 
QuestionProperty Sheet Display issues Pin
LegacyGuy30-Apr-20 9:27
MemberLegacyGuy30-Apr-20 9:27 
AnswerRe: Property Sheet Display issues Pin
Victor Nijegorodov30-Apr-20 10:01
MemberVictor Nijegorodov30-Apr-20 10:01 
GeneralRe: Property Sheet Display issues Pin
Richard MacCutchan30-Apr-20 21:33
mveRichard MacCutchan30-Apr-20 21:33 
QuestionStrange chars Pin
_Flaviu28-Apr-20 8:31
Member_Flaviu28-Apr-20 8:31 
AnswerRe: Strange chars Pin
Richard Andrew x6428-Apr-20 9:19
professionalRichard Andrew x6428-Apr-20 9:19 
GeneralRe: Strange chars Pin
_Flaviu28-Apr-20 9:40
Member_Flaviu28-Apr-20 9:40 
GeneralRe: Strange chars Pin
Richard Andrew x6428-Apr-20 9:57
professionalRichard Andrew x6428-Apr-20 9:57 
There might be some other way that the library determines the length of the string. Is there any documentation?

Otherwise you can try adding this line of code before printing the string:

dir_struct->directory[DIR_NAME_LEN - 1] = 0;   <<======================This line of code

TRACE("\n=>%s\n", dir_struct->directory);




The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Strange chars Pin
Richard MacCutchan28-Apr-20 21:32
mveRichard MacCutchan28-Apr-20 21:32 
GeneralRe: Strange chars Pin
_Flaviu28-Apr-20 21:54
Member_Flaviu28-Apr-20 21:54 
GeneralRe: Strange chars Pin
Member 798912228-Apr-20 22:41
MemberMember 798912228-Apr-20 22:41 
GeneralRe: Strange chars Pin
Richard MacCutchan28-Apr-20 22:47
mveRichard MacCutchan28-Apr-20 22:47 
GeneralRe: Strange chars Pin
_Flaviu29-Apr-20 3:10
Member_Flaviu29-Apr-20 3:10 
GeneralRe: Strange chars Pin
Richard MacCutchan29-Apr-20 3:27
mveRichard MacCutchan29-Apr-20 3:27 
GeneralRe: Strange chars Pin
_Flaviu29-Apr-20 4:25
Member_Flaviu29-Apr-20 4:25 
GeneralRe: Strange chars Pin
Richard MacCutchan29-Apr-20 6:07
mveRichard MacCutchan29-Apr-20 6:07 
GeneralRe: Strange chars Pin
k505429-Apr-20 4:21
mvek505429-Apr-20 4:21 
GeneralRe: Strange chars Pin
_Flaviu29-Apr-20 21:05
Member_Flaviu29-Apr-20 21:05 
GeneralRe: Strange chars Pin
Victor Nijegorodov29-Apr-20 22:38
MemberVictor Nijegorodov29-Apr-20 22:38 
GeneralRe: Strange chars Pin
_Flaviu3-May-20 3:35
Member_Flaviu3-May-20 3:35 
GeneralRe: Strange chars Pin
Victor Nijegorodov3-May-20 4:37
MemberVictor Nijegorodov3-May-20 4:37 
GeneralRe: Strange chars Pin
Richard MacCutchan29-Apr-20 23:25
mveRichard MacCutchan29-Apr-20 23:25 
GeneralRe: Strange chars Pin
_Flaviu29-Apr-20 23:34
Member_Flaviu29-Apr-20 23:34 
GeneralRe: Strange chars Pin
Member 798912229-Apr-20 23:50
MemberMember 798912229-Apr-20 23:50 
GeneralRe: Strange chars Pin
_Flaviu30-Apr-20 2:35
Member_Flaviu30-Apr-20 2:35 

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.