News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code completion and global

Started by sahmat, November 21, 2007, 05:04:03 AM

Previous topic - Next topic

sahmat

Hello,

I am using build 4337. "Follow local includes" and "Follow global includes" are enabled but for example,

QuoteWNDCLASSEX wincl;

wincl.

nothing happening after period. Ctrl+Space is not help too. This example is the one with C::B project templates "win32 gui project".

and thanks to the team of this wonderfull IDE.

TDragon

WNDCLASSEX is a macro, and C::B's code completion cannot (yet) resolve macros to their underlying tokens for further lookup. A lot of the Win32 API is macro based, unfortunately.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

sahmat

TDragon,

Thank you for reply. I didn't know it was a macro. This is a surprise for me. Because there is not a macro definition according to LCC, Mingw winuser.h header. Just a struct but has typedef for them to use ascii or wide char. Did you mean this. If not, point, wndclass, message etc must be macros is it? Did i understand wrong? How can i understand a windows class is a macro if it is not in header?

Regards

TDragon

Sorry, my mistake -- it is indeed a typedef rather than a macro. The end result is the same, however -- code completion doesn't resolve the typedef. This is a known deficiency.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)