I hope I do not have overlooked something small in my code, or you probably will make fun of me:
I have a function that determines if a critical error has occured in really old code which just returns a list of structs containing error information. Someone already added a std::string containing the error-message to these structs, and I can simply get that one.
I need to ignore a certain error message (which virtually always occurs), so I wrote the following code:
std::string noRecords = "no records found"; // Dont ask me why, but this message always is wrong.<br />for (int i = curr.numberOfElements(); i > 0; --i) <br />
if (std::string::npos != curr.currentElement.info.find_first_of(noRecords))<br />
which is supposed to return true ("a real error occured") if there is any other error than "no records found" and false otherwise (i.e. "just noRecords errors").
As mentioned before, I cannot change the implementation of the errorList. Just ignore the naming, please, as I had to "obfuscate" a little.
Well, the result: obviously "no records found" is a part of "unexpected end of file". Thats what currElement.info (the std::string) contains.
I also tried the following comparisons:
curr.currentElement.info.find_first_of(noRecords) < 0
curr.currentElement.info.find_first_of("no records found") < 0
curr.currentElement.info.find_first_of("no records found") != std::string::npos
but to no avail. I tried over 100 info strings with the above function, it never got inside the conditional.
I HOPE that this is really simple (that means, I messed up somewhere). find_first_of actually IS the string::find_first_of(), I double-checked that.
Yes, right, there is the property window with 6 small buttons and a combobox. In the combobox I select the IDD_MyDlG (Dialog). The 6 small button with names "kategory", "alphabet", "properties", "Messages", "Control-Events", "PropertiesSites"
Only the button "Messages" is enabled, the others are not enabled. If I click the button "Messages" I see a list of:
That's all. I think because of the BETA VERSION of VC NET the game is over here for me?
the Version is Visual Studio.Net 7.0.9254 (Beta 2). I got it in 2003.
What do you mean with "you could always add the meny at runtime (in OnInitDialog())... "?
-- modified at 15:42 Tuesday 24th January, 2006
Oh, sorry you are right because of the old release. I wanted to try this old release (3 CDs), because I already have it here, cannot download the trial 2005 (too big) from the internet. I should reinstall it now
<marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord