[commit] r1675 - trunk/SDK/BON/Wizard/Templates/1033

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Nov 10 22:08:25 CST 2011


Author: ksmyth
Date: Thu Nov 10 22:08:25 2011
New Revision: 1675

Log:
Workaround intellisense #import bug

Modified:
   trunk/SDK/BON/Wizard/Templates/1033/RawComponent.cpp

Modified: trunk/SDK/BON/Wizard/Templates/1033/RawComponent.cpp
==============================================================================
--- trunk/SDK/BON/Wizard/Templates/1033/RawComponent.cpp	Thu Nov 10 22:08:10 2011	(r1674)
+++ trunk/SDK/BON/Wizard/Templates/1033/RawComponent.cpp	Thu Nov 10 22:08:25 2011	(r1675)
@@ -10,12 +10,23 @@
 #include <GMECOM.h>
 #include <Console.h>
 #include "ComponentConfig.h"
+#ifndef __INTELLISENSE__
 #import "progid:Mga.MgaMetaFolder" no_implementation auto_search no_namespace no_search_namespace
 #import "progid:Mga.MgaFolders" no_implementation auto_search no_namespace no_search_namespace
 #import "progid:Mga.MgaMetaFolder" implementation_only auto_search no_namespace no_search_namespace
 #import "progid:Mga.MgaFolders" implementation_only auto_search no_namespace no_search_namespace
-// Sometimes IntelliSense has a hard time picking up the above lines. Try this:
-//#include "Debug/Mga.tlh"
+#else
+// IntelliSense has a known issue with the above lines.
+//  http://connect.microsoft.com/VisualStudio/feedback/details/533526/vc-2010-intellisense-import-directive-using-libid-does-not-work
+#ifdef _DEBUG
+// If IntelliSense reports "Cannot open source file", compile then reopen the project
+#include "Debug\Meta.tlh"
+#include "Debug\Mga.tlh"
+#else
+#include "Release\Meta.tlh"
+#include "Release\Mga.tlh"
+#endif
+#endif
 
 #include "RawComponent.h"
 


More information about the gme-commit mailing list