Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Project Wizard - Couple of questions

<< < (2/4) > >>

MortenMacFly:

--- Quote from: mandrav on April 25, 2006, 08:31:57 pm ---Create a resource named wizard.xrc and create wxPanels in there, one for each extra wizard screen.

--- End quote ---
Sometimes I can't see the wood for the trees. Of course! So it's like with the path setup... Sorry, this question was kind of stupid... :oops:
With regards, Morten.

mandrav:
Check out revision 2385.

MortenMacFly:

--- Quote from: mandrav on April 26, 2006, 02:51:34 pm ---Check out revision 2385.

--- End quote ---
Thanks Yiannis, the changes looking good! :D I've played around a little but trapped in an assertion failure where I need some help:
I added the following code in my Matlab-C-S-Function wizard in the SetupProject(...) method:

--- Code: ---  if (!IsValidCompilerID("lcc"))
  {
    ShowError("The wizard has detected that your version of Code::Blocks does not "
              "support the LCC compiler which is required for this project. "
              "The wizard cannot continue. Please update Code::Blocks.");
    return false;
  }

--- End code ---
Suddenly I cannot even run the wizard. If I do I get:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!
Program: E:\Devel\CodeBlocks_Devel\codeblocks.exe
File: sdk\as\source\as_compiler.cpp
Line: 6027
Expression: ctx->type.dataType.IsReference()
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)

A compiler with this ID exists. If I remove the lines the wizard works again. It may be of interest that I don't add the compiler page. BeginWizard is as following:

--- Code: ---  Wizard.AddIntroPage(intro_msg);
  Wizard.AddProjectPathPage();
  Wizard.AddPage("MatlabPath");
  Wizard.AddPage("MatlabHint");

--- End code ---
An ideas?!
With regards, Morten.

mandrav:

--- Quote from: MortenMacFly on April 26, 2006, 07:23:34 pm ---
--- Quote from: mandrav on April 26, 2006, 02:51:34 pm ---Check out revision 2385.

--- End quote ---
Thanks Yiannis, the changes looking good! :D I've played around a little but trapped in an assertion failure where I need some help:
I added the following code in my Matlab-C-S-Function wizard in the SetupProject(...) method:

--- Code: ---  if (!IsValidCompilerID("lcc"))
  {
    ShowError("The wizard has detected that your version of Code::Blocks does not "
              "support the LCC compiler which is required for this project. "
              "The wizard cannot continue. Please update Code::Blocks.");
    return false;
  }

--- End code ---

--- End quote ---

I can't test it right now 'cause I 'm on a 64bit environment where scripting does not work yet. But you shouldn't be using IsValidCompilerID() alone anyway. It should be CompilerFactory.IsValidCompilerID(). Can you test it and tell me if this works?

MortenMacFly:

--- Quote from: mandrav on April 26, 2006, 07:50:37 pm ---CompilerFactory.IsValidCompilerID(). Can you test it and tell me if this works?

--- End quote ---
Yes, this works again. Anyway, now the wizard runs through but during creation of the project C::B crashes (in CompilerFactory::GetCompilerIndex(...)). I've attached the crash report and the wizard your your inspection.
Please note that there might be another issue which I'm not sure of:
I use in SetupProject of the wizard:

--- Code: ---BuildTarget@ target = project.GetBuildTarget(Wizard.GetDebugName());

--- End code ---
but I don't have a compiler page where targets are setup. I wonder how to manually create a target, or are the target(s) being created automatically?!
With best regards, Morten.
Edit: I read the AS stuff and found AddBuildTarget... :oops: I'm trying again...

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version