Intellisense don't show the list of functions...

Hi,
I have 2 files. In the first I export a global variable (it is a class):

extern _declspec(dllexport) CMyClass g_MyClass;


In the second, I include the header file and I can compile it.
But if I want to use Intellisense after the point:

g_MyClass.

It say that it is not a class, struct or union Tongue Tied
Is it a problem of the .NET or should I set up something in the options
Thanks, Adriano


Answer this question

Intellisense don't show the list of functions...

  • alli

    Well it seems I may have made a fool out of myself :) The code you describe is not actually valid usage of dllexport. To put it simply, that statement is designed to export information in a dll, which is then imported from a consumer process that loads the dll in question. In your example, if you simply declare CMyClass at a global scope in your project then you can instantiate it in other places.

    Let us know if you need more background in this kind of usage,

    Thanks.

  • Rob Adrian

    I have been able to reproduce your problem. I will be following up with the team to see why this is happening.

    Thanks for reporting this,

  • Intellisense don't show the list of functions...