strcat a char to open a file in C++ MFC environment
Hello,
I am using the code below to open a file but for some reason it is not reading anything. The function takes a char * and it complies and runs without error. Just that when I try to see the output it never open the file. Below is the code I wrote:
Re: strcat a char to open a file in C++ MFC environment
Please use code tags, so the code you posted is readable.
Quote:
I am using the code below to open a file but for some reason it is not reading anything.
You opened the file for output. Also, where do you read something ?
Re: strcat a char to open a file in C++ MFC environment
Your code is very hard to read/understand. :eek:
The reasons:
- you don't use Code tags
- you don't put psaces between operands
- you place more than one commands/instructions on the same line
So you style to write code is not good, try to improve it ASAP!
Re: strcat a char to open a file in C++ MFC environment
Hello,
I have updated the code. Please let me know if it is still not readable. I added a few comments to help you.
Thank you
Rasha
Re: strcat a char to open a file in C++ MFC environment
Quote:
Originally Posted by
trasha001
Hello,
I have updated the code. Please let me know if it is still not readable.
WEll, your code is still not readable enough... :sick:
It is because you only did what p.3 told you.
How about pp. 1 and 2?
FYI:
http://www.codeguru.com/forum/misc.php?do=bbcode#code
http://www.codeguru.com/forum/announcement.php?f=7
Re: strcat a char to open a file in C++ MFC environment
Solved it, thank you for your help.
Re: strcat a char to open a file in C++ MFC environment
The fact you have solved your problem does NOT mean you may remove the source code(where the problem was) from your OP! :mad:
Without that code al your thread does not make any sense!
Please, restore your original code and share your solution.