Author Topic: Project wizard issue with build 4472  (Read 4505 times)

Offline new-c::b-user

  • Single posting newcomer
  • *
  • Posts: 3
Project wizard issue with build 4472
« on: September 27, 2007, 06:54:19 pm »
I think I found a bug in the project wizard. i created a new project (Code::Blocks Plugin) and entered a plugin name with spaces e.g.: 'Blub Plugin'. With this name the wizard create the .cpp and .h files and the c++ classes have also the spaces in the name. This results in  a error during compiling, of course. The wizard should replace the spaces with '-' or '_' or with ''.

plz have a look:
---------------

#include <sdk.h> // Code::Blocks SDK
#include <configurationpanel.h>
#include "Blub Plugin .h"

// Register the plugin with Code::Blocks.
// We are using an anonymous namespace so we don't litter the global one.
namespace
{
    PluginRegistrant<Blub Plugin > reg(_T("Blub Plugin "));
}

// constructor
Blub Plugin ::Blub Plugin ()
{
    // Make sure our resources are available.
    // In the generated boilerplate code we have no resources but when
    // we add some, it will be nice that this code is in place already Wink
    if(!Manager::LoadResource(_T("Blub Plugin .zip")))
    {
        NotifyMissingFile(_T("Blub Plugin .zip"));
    }
}

// destructor
Blub Plugin ::~Blub Plugin ()
{
}
---

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Project wizard issue with build 4472
« Reply #1 on: October 04, 2007, 07:10:32 pm »
Fixed in revision 4508. Thanks for the bug-report. Also please post if this bug exists in other wizards. :)
Be a part of the solution, not a part of the problem.