Author Topic: Code completion and global  (Read 2000 times)

sahmat

  • Guest
Code completion and global
« on: November 21, 2007, 05:04:03 am »
Hello,

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

Quote
WNDCLASSEX 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.
« Last Edit: November 21, 2007, 05:13:48 am by sahmat »

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
Re: Code completion and global
« Reply #1 on: November 21, 2007, 03:06:32 pm »
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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

sahmat

  • Guest
Re: Code completion and global
« Reply #2 on: November 21, 2007, 07:51:38 pm »
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

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
Re: Code completion and global
« Reply #3 on: November 21, 2007, 08:20:52 pm »
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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)