VC 6 code won't compile in .Net
-
I have an Explorer extension that implements the IContextMenu interface. It all compiles fine in vc6 but if I open and hence convert it in vc7 (.net) it tells me that interface hasn't been defined. In my class file I can right click on the word IContextMenu and go to definition and life is good. all win32 defines are correct. Would there be a problem with the SDK if it was installed before .Net. Maybe I'll check the SDK update...
-
I have an Explorer extension that implements the IContextMenu interface. It all compiles fine in vc6 but if I open and hence convert it in vc7 (.net) it tells me that interface hasn't been defined. In my class file I can right click on the word IContextMenu and go to definition and life is good. all win32 defines are correct. Would there be a problem with the SDK if it was installed before .Net. Maybe I'll check the SDK update...
From what I read, you are not using C# (C# forum). -IContextMenu is defined in ShlObj.h which is not a default header automatically included by vc. -IID_IContextMenu is defined in ShlGuid.h -You must link with either uuid.lib or shell32.lib
And I swallow a small raisin.