# \[4.18\] Visual Studio opens unnecessary windows when adding a new C++ class via the editor's interface

**URL:** <https://forums.unrealengine.com/t/4-18-visual-studio-opens-unnecessary-windows-when-adding-a-new-c-class-via-the-editors-interface/409486>\
**Category:** Pipeline & Plugins\
**Tags:** windows-7, windows-10, unreal-engine, bug-report, Visual-Studio, UE4, question\
**Created:** [November 13, 2017, 11:58am UTC](https://forums.unrealengine.com/t/4-18-visual-studio-opens-unnecessary-windows-when-adding-a-new-c-class-via-the-editors-interface/409486 "2017-11-13T11:58:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragnarula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ragnarula](https://forums.unrealengine.com/u/ragnarula)\
**Post date:** [November 13, 2017, 11:58am UTC](https://forums.unrealengine.com/t/4-18-visual-studio-opens-unnecessary-windows-when-adding-a-new-c-class-via-the-editors-interface/409486/1 "2017-11-13T11:58:14Z")

</div>

[UE-51608](https://issues.unrealengine.com/issue/UE-51608) Reports this bug for Windows 7 - see link for full description.

Contrary to description in UE-51608 I am experiencing the bug in Windows 10 Version 1709 build 16299.19 with Visual Studio Community 2017 version 15.4.2.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [November 13, 2017, 2:52pm UTC](https://forums.unrealengine.com/t/4-18-visual-studio-opens-unnecessary-windows-when-adding-a-new-c-class-via-the-editors-interface/409486/2 "2017-11-13T14:52:58Z")

</div>

Hey ragnarula-

I have updated the report to remove the reference that this does not occur on Win10.

Cheers

---

<div class="post-metadata">

**Author:** ![Dune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dune](https://forums.unrealengine.com/u/Dune)\
**Post date:** [November 14, 2017, 3:54pm UTC](https://forums.unrealengine.com/t/4-18-visual-studio-opens-unnecessary-windows-when-adding-a-new-c-class-via-the-editors-interface/409486/3 "2017-11-14T15:54:20Z")

</div>

Hi ,

One of our team found a work around/fix that can be added to an Engine Source build.

EngineFolder/Plugins/Developer/VisualStudioSourceCodeAccess/Source/VisualStudioSourceCodeAccess/Private/VisualStudioSourceCodeAccessor.cpp

Line 224 -

```
if (Filename == InSolutionPath)

```

to

```
FString AbsoluteSolutionPath = FPaths::ConvertRelativePathToFull(InSolutionPath);
if (Filename == InSolutionPath || Filename == AbsoluteSolutionPath)

```

Not sure if it is useful to have that on the bug as well.
