No, I sure don't. Didn't know what one was until you pointed it out.
I am having a couple issues with your code though.
I get a red line under the equal sign on this line:
m_Name = line.substr(wcslen(orthoBegin));
When I hover over it it says "no "=" matches these operands".
Is it because m_Name is a wstring and orthoBegin is a const wchar_t? Does it need to be converted?
I also get this error when I try to compile:
1 2 3 4 5
|
orthography.cpp(113): error C2663: 'std::vector<_Ty>::push_back' : 2 overloads have no legal conversion for 'this' pointer
1> with
1> [
1> _Ty=CharacterMatch
1> ]
|
Line 113 is:
m_CharacterMatches.push_back(chmatch);
I get a red line under the period in that light. Hovering over it says "no instance of overloaded function..." and a whole bunch of other stuff.
I took your suggested and changed the GetName() function for CharacterMatches. That was pretty much what I was trying to do last night but was going about it in an incredibly round-about way. I'd probably been staring at the code for too long and couldn't see the simpler, easier way that was right in front of my face.
I've also made it to where the user can't add a match if the exact one already exists. I've also made it to where the user can't add an orthography if they are trying to make a new one with the same name as an existing one.
Basically that just means I am fine-tuning some things that I am able to while we hammer this out. And I want to say again how much I appreciate your time with this :).
Also, what would be your recommendation for loading the saved orthographies into the program? As they are selected in the combo box (which means at least the titles of them would need to be loaded) or load them all when the program starts? It isn't like I expect 72649028405 orthographies to be added by someone. Maybe a handful or so.
Oh, before I forget, I'd like to ask about the "std::" you are using. Is it recommended to go that route rather than just using "using namespace std;"? Is it just a good practice to follow?