Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VCFileCodeModel CodeElementFromPoint Problem

$
0
0

Hi,

Does anyone notice that CodeElementFromPoint can not get the VCCodeClass from exactly the same text point  compared to Visual Studio IDE? The details can be represented as below:

For given the VC Code as 

#define DD(TYPE) private: TYPE value; 

class AA
{
	DD(unsigned short)
};
I firstly set cursor at the third line inside the class name 'AA'. The the property window of IDE will show as


However, when use VCFileCodeModel's CodeElementFromPoint for all values of vsCMElement, the function returns null as a result. Then when I remove the second line inside the class 'AA' which is 'DD(unsigned short)', the function returns a VCCodeClass representing the class 'AA'.
Does the VC++ Package preinstalled in the IDE does a different VC Code Model for itself, otherwise how can I solve it? 

IDE: VS2013 update 3

Windows: Windows8.1

VSSDK: VS2013 SDK


msdn 论坛回复


Viewing all articles
Browse latest Browse all 4410

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>