Click here to Skip to main content
15,885,435 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange chars Pin
Richard MacCutchan30-Apr-20 3:40
mveRichard MacCutchan30-Apr-20 3:40 
QuestionRe: Strange chars Pin
David Crow30-Apr-20 3:50
David Crow30-Apr-20 3:50 
AnswerRe: Strange chars Pin
Richard MacCutchan30-Apr-20 4:02
mveRichard MacCutchan30-Apr-20 4:02 
GeneralRe: Strange chars Pin
Victor Nijegorodov30-Apr-20 5:55
Victor Nijegorodov30-Apr-20 5:55 
GeneralRe: Strange chars Pin
Richard MacCutchan30-Apr-20 6:00
mveRichard MacCutchan30-Apr-20 6:00 
GeneralRe: Strange chars Pin
David Crow30-Apr-20 3:50
David Crow30-Apr-20 3:50 
GeneralRe: Strange chars Pin
_Flaviu30-Apr-20 6:09
_Flaviu30-Apr-20 6:09 
GeneralRe: Strange chars Pin
kalberts30-Apr-20 17:45
kalberts30-Apr-20 17:45 
I am really puzzled by how difficult it seem to be to explain how the value of that .directory was initialized. Where its value came from. How it was created.

Obviously, whatever created the value did not follow the C convention of terminating it with a nul - most likely because it doesn't have a C origin. Fair enough. But why is it so difficult to show how the .directory value was obtained?

As it now stands, it is like complaining "This variable should have av value between 0 and 100, but it is above 100. Why???" If you can't figure that out yourself, you must reveal how you calculate it, you cannot simply tell us how you use it, after it has gotten that out-of-range value-

Your directory string is another out-of-range value. How you use it, after it got this illegal value is of no interest. The important thing is how it got that value, not how you later use it. Like if you ask "Why does my value exceed 100?" Noone can tell unless you tell how you got or calculated that value. String values are no different: If they have an illegal value, such as not being nul-terminated in contexts where that is expected, the problem is in the source, not in the use of the value.

If it is as difficult as it seems to trace the source, identify where that directory sting came from, then you should not expect others to be able to help you. "I have an illegal value, but I can't tell where it came from - why is it not legal?" - noone can give you a reasonable answer to that.

So come on, tell us how the .directory value was obtained/created! Until you do that, you cannot expect any useful help from other forum members
GeneralRe: Strange chars Pin
Richard MacCutchan1-May-20 4:02
mveRichard MacCutchan1-May-20 4:02 
GeneralRe: Strange chars Pin
_Flaviu1-May-20 4:48
_Flaviu1-May-20 4:48 
GeneralRe: Strange chars Pin
_Flaviu3-May-20 5:21
_Flaviu3-May-20 5:21 
GeneralRe: Strange chars Pin
Richard MacCutchan7-May-20 4:34
mveRichard MacCutchan7-May-20 4:34 
QuestionPassing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 1:16
Calin Negru28-Apr-20 1:16 
AnswerRe: Passing an array as argument to a function (2) Pin
Richard MacCutchan28-Apr-20 2:40
mveRichard MacCutchan28-Apr-20 2:40 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 3:08
Calin Negru28-Apr-20 3:08 
GeneralRe: Passing an array as argument to a function (2) Pin
k505428-Apr-20 3:23
mvek505428-Apr-20 3:23 
AnswerRe: Passing an array as argument to a function (2) Pin
Greg Utas28-Apr-20 2:48
professionalGreg Utas28-Apr-20 2:48 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 3:36
Calin Negru28-Apr-20 3:36 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov28-Apr-20 8:49
Victor Nijegorodov28-Apr-20 8:49 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 9:54
Calin Negru28-Apr-20 9:54 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov28-Apr-20 10:22
Victor Nijegorodov28-Apr-20 10:22 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 10:45
Calin Negru28-Apr-20 10:45 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov28-Apr-20 10:58
Victor Nijegorodov28-Apr-20 10:58 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 20:59
Calin Negru28-Apr-20 20:59 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov30-Apr-20 6:13
Victor Nijegorodov30-Apr-20 6:13 

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.