Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/138.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
分析问题-应为非限定id 嘿,这是我的代码,我对C++比较新,甚至编码真的不知道为什么我会得到一个解析错误。 虽然根据我的理解,我已经正确地放置了括号,但如果我遗漏了任何内容,请提出建议_C++_Vst_Juce - Fatal编程技术网

分析问题-应为非限定id 嘿,这是我的代码,我对C++比较新,甚至编码真的不知道为什么我会得到一个解析错误。 虽然根据我的理解,我已经正确地放置了括号,但如果我遗漏了任何内容,请提出建议

分析问题-应为非限定id 嘿,这是我的代码,我对C++比较新,甚至编码真的不知道为什么我会得到一个解析错误。 虽然根据我的理解,我已经正确地放置了括号,但如果我遗漏了任何内容,请提出建议,c++,vst,juce,C++,Vst,Juce,我在这条线上出错了 class getProcessor()->RequestUIUpdate()// UI update must be done each time a new editor is constructed 完整代码: StereoWidthCtrlAudioProcessorEditor::StereoWidthCtrlAudioProcessorEditor (StereoWidthCtrlAudioProcessor* ownerFilter) : Aud

我在这条线上出错了

class getProcessor()->RequestUIUpdate()// UI update must be done each time a new editor is constructed
完整代码:

StereoWidthCtrlAudioProcessorEditor::StereoWidthCtrlAudioProcessorEditor (StereoWidthCtrlAudioProcessor* ownerFilter)
    : AudioProcessorEditor(ownerFilter)
{
    addAndMakeVisible (WidthCtrlSld = new Slider ("Width Factor Slider"));
    WidthCtrlSld->setRange (0, 5, 0.1);
    WidthCtrlSld->setSliderStyle (Slider::LinearHorizontal);
    WidthCtrlSld->setTextBoxStyle (Slider::TextBoxLeft, false, 80, 20);
    WidthCtrlSld->addListener (this);

    addAndMakeVisible (BypassBtn = new TextButton ("Bypass Button"));
    BypassBtn->setButtonText (TRANS("Bypass"));
    BypassBtn->addListener (this);

    addAndMakeVisible (label = new Label ("new label",
                                          TRANS("Stereo Width Factor:")));
    label->setFont (Font (15.00f, Font::plain));
    label->setJustificationType (Justification::centredLeft);
    label->setEditable (false, false, false);
    label->setColour (Label::textColourId, Colour (0xffa34747));
    label->setColour (TextEditor::textColourId, Colours::black);
    label->setColour (TextEditor::backgroundColourId, Colour (0x00000000));


    //[UserPreSize]
    //[/UserPreSize]

    setSize (600, 400);


    //[Constructor] You can add your own custom stuff here..

    class getProcessor()->RequestUIUpdate()// UI update must be done each time a new editor is constructed

    startTimer(200)//starts timer with interval of 200mS
    BypassBtn->setClickingTogglesState(true);
    //[/Constructor]
}

StereoWidthCtrlAudioProcessorEditor::~StereoWidthCtrlAudioProcessorEditor()
{
    //[Destructor_pre]. You can add your own custom destruction code here..
    //[/Destructor_pre]

    WidthCtrlSld = nullptr;
    BypassBtn = nullptr;
    label = nullptr;


    //[Destructor]. You can add your own custom destruction code here..
    //[/Destructor]enter code here
}

class
是一个主要用于声明的关键字。你可能是说:

getProcessor()->RequestUIUpdate();

class
是定义一个类的关键字,或者至少声明一个类的存在——这两者都不是在代码中完成的。您可能想让该行看起来像
getProcessor()->RequestUIUpdate()但您没有提供足够的信息来确定。(请注意该行末尾的分号。)