Any update on this? Getting the following error when compiling the Juce lib with 1.52:
..\..\src\gui\components\windows\juce_ComponentPeer.cpp(521) : error C2326: 'void juce::ComponentPeer::handleFileDragDrop::AsyncFileDropMessage::messageCallback(void)' : function cannot access 'juce::operator !='
About to grab the latest tip, I had to set up an XP virtual machine to do this with VC2005 and I’m waiting for the GIT installer itself to download as I type this. Thanks!
EDIT: the same error happens with the latest tip. Not sure what to try now.
Good old VC2005, producing an error that’s utter bollocks. What a surprise. Maybe it’ll work if you move that AsyncFileDropMessage class outside of the function that it’s in? Must be some idiotic scoping bug, as it definitely compiles ok in VC6, VC2008 and every other compiler in the world. (I don’t have a working installation of VC2005 at the moment to try it myself)
I’ll try that and get back to you with the results. I’ve learned to hate VC2005 with a passion. It’s definitely not your fault, and there’s no reason why this should happen, other than the Windows platform generally being complete garbage. And you’re right about it working in all the other compilers - tested and verified that here on multiple boxes as well.
If my company has to delay the release of a Windows/RTAS version of our plugin by a couple of weeks to get this all sorted, it’s not a big deal. Thanks again!
Just loaded 1.52 to VS2005. Got the same error on 'if (target != 0)'
I have changed it to:
void messageCallback()
{
if (target = 0)
{}
else
{
dropTarget->filesDropped (files, position.getX(), position.getY());
}
}
Not really comforting… but it worked.