User forums > Using Code::Blocks

Could Code::Blocks list the members of a struct or class?

<< < (2/3) > >>

MortenMacFly:
Completely forgotten:

BUT there is a work-around:
- Go to menu "Settings" -> "Editor" -> Code completion
- Select the tab "C/C++ parser"
- in "Replacement tokens" add:
  WNDCLASSEX -> _WNDCLASSEXA
(or in the case of unicode:
  WNDCLASSEX -> _WNDCLASSEXW)

Let the project re-parse (right click on the symbol tree and select "Re-parse") and it'll work.

norsd:
Thank God.
Thank you Morten.
But.......
Complex..... as an FOOL C++ developer , why do I need to do so many things to correct my lovely IDE?

norsd:
Yes, when i defined like that :" _WNDCLASSEXW stTest; " , the Code Complete works.
Fine, but nothing is better now.

As you know, there are many projects which are based on both two codes(unicode and non-unicode ).
In these projects there are so many "typedef" and so many "#ifdef UNICODE" in header files , WHAT SHOULD I DO for that?

I want to cry........

MortenMacFly:

--- Quote from: norsd on October 15, 2008, 12:05:07 pm ---WHAT SHOULD I DO for that?

--- End quote ---
Just add both:

--- Quote from: MortenMacFly on October 15, 2008, 11:27:52 am ---- in "Replacement tokens" add:
  WNDCLASSEX -> _WNDCLASSEXA
AND:
  WNDCLASSEX -> _WNDCLASSEXW)

--- End quote ---

--- Quote from: norsd on October 15, 2008, 12:01:32 pm ---why do I need to do so many things to correct my lovely IDE?

--- End quote ---
That's not an IDE issue but an issue with the MS SDK framework. Probably you have realised that C::B support a lot compilers. So we cannot handle each and every special freaky thing (compiler) frameworks ship with.

norsd:
As a deep developer in CB, could you tell me is that can be truth that someone would(could) make a plugin to make the CC perfect, I mean that the CC would "know" typedef , #if, #else and so on .

And I also found the new type which you defined by typedef would not be set as a color, for example,blue;
But AssistX as an add-in of VS, can do that excellently.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version