# Error adding Public Dependancy Modules

**URL:** <https://forums.unrealengine.com/t/error-adding-public-dependancy-modules/350761>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, unreal-engine, Visual-Studio, UE4, CPP, question\
**Created:** [March 16, 2016, 9:17pm UTC](https://forums.unrealengine.com/t/error-adding-public-dependancy-modules/350761 "2016-03-16T21:17:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon11580166](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon11580166](https://forums.unrealengine.com/u/anon11580166)\
**Post date:** [March 16, 2016, 9:17pm UTC](https://forums.unrealengine.com/t/error-adding-public-dependancy-modules/350761/1 "2016-03-16T21:17:29Z")

</div>

So I’ve seen a few questions that seem to have similar problems, but I seem to have everything that they had implemented, with no luck.

I am attempting to follow Rama’s Tutorial on adding Socket Listening to my Project.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

To do this, I have gone to my Project.build.cs file and made the following additions:

```
PublicDependencyModuleNames.AddRange(new string[] { "Sockets", "Networking", "OnlineSubsystem" });

```

Next, I created a new PlayerController C++ class, and tried to add the following:

```
#include "Networking.h"

```

So the problem that I currently have is that I still can’t get my PlayerController Class to recognise that Networking.h does exist. I am at a loss as to what to do next. Is there something I’m missing?

Cheers lads.

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [March 16, 2016, 10:00pm UTC](https://forums.unrealengine.com/t/error-adding-public-dependancy-modules/350761/2 "2016-03-16T22:00:52Z")

</div>

Build your Project. VS will find your Networking.h after the Build. You just need to Build it once after you add something to the Build.cs.

Edit: after a little back and forth on FB the Problem was some custom Methods (VSHOW) that are not included in the wikis source files. Also the SetTimer needs a FTimerHandle and the TArrays Init() is deprecated use SetNumUninitialized() instead. Thats about it.
