User forums > Nightly builds
The 10 May 2007 build will NOT be out. (developers please read this)
MortenMacFly:
Right then... I had the crazy idea of starting to add support for wxWidgets to this plugin. So what I did was entering the config, creating a new set and started with "wxBeginBusyCursor". Unfortunately I received the error "Please enter valid C++ identifier". I looked into configuration.cpp and found the line:
--- Code: ---if ( wxString(_T("_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstvwxyz")).Find(Identifier.GetChar(0)) == wxNOT_FOUND )
--- End code ---
which is causing the error message. Well... Identifier.GetChar(0) is obviously "w" (I verified that)... Now I read the line a million times - either it's too late or I'm simply too dumb: Why is it failing??? I mean: it seems obviously to be a minor bug but I cant' find the reason for this .Find() method to fail. Any help?!
With regards, Morten.
byo:
--- Quote from: MortenMacFly on May 14, 2007, 10:16:03 pm ---Right then... I had the crazy idea of starting to add support for wxWidgets to this plugin. So what I did was entering the config, creating a new set and started with "wxBeginBusyCursor". Unfortunately I received the error "Please enter valid C++ identifier". I looked into configuration.cpp and found the line:
--- Code: ---if ( wxString(_T("_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstvwxyz")).Find(Identifier.GetChar(0)) == wxNOT_FOUND )
--- End code ---
which is causing the error message. Well... Identifier.GetChar(0) is obviously "w" (I verified that)... Now I read the line a million times - either it's too late or I'm simply too dumb: Why is it failing??? I mean: it seems obviously to be a minor bug but I cant' find the reason for this .Find() method to fail. Any help?!
With regards, Morten.
--- End quote ---
'u' is missing in strings with allowed chars :oops:
gjsmo:
--- Quote from: byo on May 15, 2007, 12:05:34 am --- reason
'u' is missing in strings with allowed chars :oops:
--- End quote ---
Huh. How did that happen? I wonder...
P.S. I am not really familiar with the CB code and wxWidgets. However, I can pretty much see what this is doing (checking for allowed characters by having a string with all allowed chars, then searching for the entered char in the string to see if it is valid) and I would think that this would be an obvious mistake.
--- Quote from: MortenMacFly on May 14, 2007, 10:16:03 pm ---Now I read the line a million times - either it's too late or I'm simply too dumb: Why is it failing???
--- End quote ---
I am not sure but I think maybe the latter reason explains it. :oops:
killerbot:
--- Quote from: MortenMacFly on May 14, 2007, 06:01:39 pm ---Thanks Byo, as we have seen here: http://forums.codeblocks.org/index.php/topic,5903.msg45142.html#msg45142 my attempt was far from being perfect anyway... :cry:
With regards, Morten.
Edit: Wohooo! Looks great! Have tested in on some of the plugins and (in fact) discovered missing includes. As you said there are some header included twice then but it's easy to remove the duplicates afterwards. Much easier than searching for the header files missing. Great work! 8)
--- End quote ---
sounds nice but ...... I had a look at the envvars.h, you added cbproject.h to the include list. Why ?
I don't see any reason why, or maybe it's still to early in the morning for me ;-)
In case it would be for FileTreeData : you should use the forward declaration :
class FileTreeData;
MortenMacFly:
--- Quote from: killerbot on May 15, 2007, 08:53:52 am ---In case it would be for FileTreeData : you should use the forward declaration :
class FileTreeData;
--- End quote ---
It was indeed for that. Anyway - forward decl's are not yet supported by the plugin... but yes - would have been better. :oops: I'd better had not done that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version