# VS Cannot open source file

**URL:** <https://forums.unrealengine.com/t/vs-cannot-open-source-file/1140800>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [April 25, 2023, 5:00pm UTC](https://forums.unrealengine.com/t/vs-cannot-open-source-file/1140800 "2023-04-25T17:00:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuJuFrazer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yujufrazer/32/629768_2.png) [@YuJuFrazer](https://forums.unrealengine.com/u/YuJuFrazer)\
**Post date:** [April 25, 2023, 5:00pm UTC](https://forums.unrealengine.com/t/vs-cannot-open-source-file/1140800/1 "2023-04-25T17:00:46Z")

</div>

|Error (active)|E1696|cannot open source file PaperCharacter.generated.h|test|E:\UE\_5.1\Engine\Plugins\2D\Paper2D\Source\Paper2D\Classes\PaperCharacter.h|8||

I want to use C++ when making games but every time I try I always get these kinds of errors that no one can help me fix, so I thought I would ask here.

Steps I’ve already done:  
I’ve added dependencies to the build.cs for paper2d.  
I’ve added the paths to the NMake.

All I’m trying to do is make an actor class and add a sprite component.  
I’ve also deleted the VS, Binaries, saved, and intermediate folders and tried to rebuild them.  
I have also even tried turning it off and back on which sometimes works lol.
