yungman said:
I have a very simple question, I never understand what is Solution and Project. Sounds like Solution is the superset, a Solution can contain more than one project and you can choose to compile any specific project or all at one time. Am I correct?
Yes. Here's a screen shot of one of my programs.
The solution, DllApp, consists of two projects, DllClient and DllCode. The build rules are different for the two projects, as DllCode is compiled and linked to produce a DLL, while DllClient is compiled and linked to produce an executable (.exe) that uses two of the functions that are exported from the DLL.
yungman said:
I just want to say, unlike someone here said I don't listen and do it my own way. I listen, I ask, I learn and I write detail notes. Like I just started a folder actually printing out things that you and Jarvis linked. Those are important stuff like What your link that explain Configuration and all. Believe me, I listen and read and I don't keep repeating the mistake over and over. You seldom see me making the same mistake after I asked and understand. Like I said, I put a lot of effort writing notes for C++ and refer to my notes to write codes. Now I am doing it with VS notes also. So far, I have much less problem with C++ than VS because I have not learn VS so far until now.
The reason that you have had fewer problems with C++ is that you have benefited from the expertise of numerous members here, who have taken time to answer your questions. Many of those questions could have been answered by yourself,
if you had taken time to look at the documentation for the function in question or for a particular aspect of VS. For example, your thread on getline ran for 65 posts. Another on binary files ran for 57 posts. This thread, on strings, is at 27 posts. If you had spent some time looking at the documentation that discussed the string template class, most of your questions would have been answered.
Two of your recent threads, one on a build errors and another on setting things up in VS to have multiple source files, ran for 57 posts and 89 posts respectively. Most of what you were asking about is described in detail in the VS documentation. Two of your earlier threads had 235 posts and 397 posts!
yungman said:
Yes, I do repeat asking some question that I don't quite get and I don't necessary agree.
On those points where you don't necessarily agree, is your position based on greater knowledge? If you go to someone to learn a skill, and then tell him that you don't necessarily agree about what he has said, that seems very arrogant to me.
yungman said:
It's not that I don't listen, I am just being critical and not follow along. Like we spent a lot of time on why the program doesn't work if I combine Add-->New file with Add-->Existing. I know you told me to do what works, But I want to be able to combine both because I feel it's important to be able to pull in pre-written external file ( .h and .cpp or objects) and use it in the program. I am sure there are better ways in later chapters, BUT, until I get to that, I still want to have a way to do that even thought it's a dumb way.
Sure, you can add new items and add existing items. That's easy to do, but you made it extremely difficult to help you by deleting files and folders, and wondering why the program wouldn't compile. If you had spent a little time with simple programs, as described in the VS docs and tutorials, you wouldn't have had nearly the number of problems. You would have seen how VS creates file system directories and shows different views of the program file structure in Solution Explorer.
A large part of the problem, IMO, is that you learn a little bit, and then extrapolate with your own example way beyond what you have learned. A case in point is the program you wrote in this thread using the string template class. In that program you wrote STL string when you meant C string (array of char with a terminating zero), you declared a pointer to an array of string objects rather than a single string instance, and you made to too short by one byte.
You believe this is a good way to learn --
I strongly disagree. Without the help of people here to guide you in the right direction, I believe you would still be struggling with pointers.
yungman said:
Like This one is important to me, Thanks to you, I think I've got the information so I can study deeper into it and learn more about VS. Sorry that I am not going to apologize for keep asking and being critical and sometimes not taking all the advice.
I'm going to quote a comment that
@Vanadium 50 made in this thread:
Vanadium 50 said:
Your strategy for learning VS seems to be:
- Ask a question
- Get a series of replies
- Do something other than what was suggested
- Complain that you got bad advice or VS is broken
- Go to 1
Based on how this has been going, maybe it's time for a new strategy.
Apparently you think this is a good strategy, but it seems foolish to me. Speaking for myself, I don't mind questions, but at some point, you have to show that you have made a good faith effort to answer your question. That's also the philosophy on homework questions at this site.
yungman said:
As for why I make things more difficult for myself by making up more difficult programs. I don't go to school, I am on my own with help from you and a few others in PF.
And how do you think that some of us learned? We were on our own, as well,
but without the internet to provide quick answers. How many of us learned was by looking at the documentation when something wasn't working the way we thought it would.