C++ CLI Class
Oct 19, 2011 at 2:05pm UTC
Hi All
Ive been racking my brains why my class does not show the method in the Intellisence of my code window.
I have made a class called Utilities which is in the Utilities.h header.
I have referenced the header in my code window by using #include "Utilities.h"
and my class has the following code
1 2 3 4 5 6 7 8 9 10
public ref class Utilities
{
private :
double height;
double width;
public : void TestMethod(){};
};
However when I reference the class by using the following code I dont get the method called TestMethod show up in the Intellisence.
Any ideas why?
1 2
Utilities^ Util = gcnew Utilities();
Util-> //doesnt show here. Please help. Thank you
Thanks
Oct 19, 2011 at 5:54pm UTC
it could be bug with visual studio.. Does the class work if you manually type it in?
Oct 20, 2011 at 8:19am UTC
Hi - yes it works if i type it manually.
I mean in this day and age... where vsc++ has been around for years... how can a fundental mistake like his by Microsoft happen?
Oct 20, 2011 at 8:35am UTC
Visual Studio 2010 does not support IntelliSense for C++/CLI (mainly 'cos it was unreliable and buggy). I believe that it will be back in the next version of VS.
Topic archived. No new replies allowed.