Author Topic: Code complete's behavior strange  (Read 4919 times)

Offline Satervalley

  • Single posting newcomer
  • *
  • Posts: 6
Code complete's behavior strange
« on: August 16, 2007, 05:05:14 pm »
Hi!
First of all, thank the authors for making the best Free Open source C++ IDE for wxWidgets(and other c++ stuff, of course).

I use the svn 4365 version of CB, MS VC2005 is my default compiler, I download wxwidgets, install it, and compiled it. In CB, I set the search dirs for wxwidgets. So, all are ready. I create a simple wxwidgets project in cb, and compiled it successfully. I want to change some code, but I find that code complete not work for global class. for example, some code blow:

class wxTestFrame: public wxFrame
{
    public:

        wxTestFrame(wxWindow* parent,wxWindowID id = -1);
        virtual ~wxTestFrame();
...
}

in cpp file:

wxTestFrame::wxTestFrame(wxWindow* parent,wxWindowID id)
{
    //(*Initialize(wxTestFrame)
    wxMenuBar* MenuBar1;
    wxMenu* Menu1;
    wxMenuItem* MenuItem1;
    wxMenu* Menu2;
    wxMenuItem* MenuItem2;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxFrame"));
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();

    Menu1->  // when I type here, I expect the code complete will popup and show a member functions list for wxMenu, but nothing happen.

but in another condition:

class wxTestApp : public wxApp
{
    public:
        virtual bool OnInit();
};

in cpp file:

bool wxTestApp::OnInit()
{
    bool wxsOK = true;
    wxInitAllImageHandlers();
    if ( wxsOK )
    {
        wxTestFrame* Frame = new wxTestFrame(0);
        Frame->      // here, a list includes not only member function of wxTestApp but also member functions of wxApp  is popuped.
        SetTopWindow(Frame);
    }
    return wxsOK;

}

so, it seems that code complete for global class works somewhere and strikes another where.

I do not know why.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Code complete's behavior strange
« Reply #1 on: February 24, 2008, 09:25:31 am »
I'am the same problem, and the C::B version is: svn build rev 4893 (2008-02-18 20:06:04) gcc 4.2.1 Windows/unicode