We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9146a79 commit c9c2e1fCopy full SHA for c9c2e1f
Rubberduck.VBEEditor/SafeComWrappers/VBA/VBE.cs
@@ -187,10 +187,10 @@ public IHostApplication HostApplication()
187
}
188
189
var host = Path.GetFileName(System.Windows.Forms.Application.ExecutablePath).ToUpperInvariant();
190
- //This needs the VBE as a ctor argument.
191
- if (host.Equals("SLDWORKS.EXE"))
+ //These need the VBE as a ctor argument.
+ if (host.Equals("SLDWORKS.EXE") || host.Equals("POWERPNT.EXE"))
192
{
193
- return new SolidWorksApp(this);
+ return (IHostApplication)Activator.CreateInstance(HostAppMap[host], this);
194
195
//The rest don't.
196
if (HostAppMap.ContainsKey(host))
0 commit comments