# Can't use FOnlineSubsystemBPCallHelper in my projcte

**URL:** <https://forums.unrealengine.com/t/cant-use-fonlinesubsystembpcallhelper-in-my-projcte/403966>\
**Category:** Blueprint\
**Tags:** unreal-engine, module, Blueprint, question, CPP\
**Created:** [September 7, 2017, 7:42am UTC](https://forums.unrealengine.com/t/cant-use-fonlinesubsystembpcallhelper-in-my-projcte/403966 "2017-09-07T07:42:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuooYu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LuooYu](https://forums.unrealengine.com/u/LuooYu)\
**Post date:** [September 7, 2017, 7:42am UTC](https://forums.unrealengine.com/t/cant-use-fonlinesubsystembpcallhelper-in-my-projcte/403966/1 "2017-09-07T07:42:05Z")

</div>

Hi.  
I want to use FOnlineSubsystemBPCallHelper in my project.  
And I added the required modules.(“OnlineSubsystem” and “OnlineSubsystemUtils”)  
But if I want to include “OnlineSubsystemBPCallHelper.h”, it always says can’t open source file  
OnlineSubsystemBPCallHelper.h.  
Even if I inherit from UFindSessionBPCallbackProxy, it won’t do the right thing.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![snafu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@snafu](https://forums.unrealengine.com/u/snafu)\
**Post date:** [October 6, 2017, 5:26pm UTC](https://forums.unrealengine.com/t/cant-use-fonlinesubsystembpcallhelper-in-my-projcte/403966/2 "2017-10-06T17:26:43Z")

</div>

Have a look at the BlueprintDataDefinitions.h of the Advanced Sessions Plugin. They have just copied the struct and documented as follows:

> Couldn’t use the default one as it is not exposed to other modules, had to re-create it here

I would recommend the same way.

---

<div class="post-metadata">

**Author:** ![Jack98.h](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jack98.h/32/567986_2.png) [@Jack98.h](https://forums.unrealengine.com/u/Jack98.h)\
**Post date:** [September 3, 2022, 9:54pm UTC](https://forums.unrealengine.com/t/cant-use-fonlinesubsystembpcallhelper-in-my-projcte/403966/3 "2022-09-03T21:54:51Z")

</div>

I know is a outdated post.  
I am in UE 4.27.2 and i use this way for use “FOnlineSubsystemBPCallHelper” struct.

```auto
#include "OnlineSubsystemUtils/Private/OnlineSubsystemBPCallHelper.h"

```

After include this Header i realize that the declaration and implementation are spit in two file.

> Declaration → “OnlineSubsystemUtils/Private/OnlineSubsystemBPCallHelper.h”  
> Implementation → “OnlineSubsystemUtils/Private/OnlineSubsystemUtils.cpp”

So…next i copied what was there in the Implementation and paste in the Declaration.  
After that, in the Implementation side i Comment the duplicate code, instead in the Declaration i include the Header “OnlineSubsystemUtils.h”

You can encounter problem with the module linker because this struct is inside a Private folder, so i advise you to add “OnlineSubsystemUtils” in the Private Module of your “Project.Build.cs”

P.S. I also try include “OnlineSubsystemUtils/Private/OnlineSubsystemUtils.cpp” but without success. (Console Error: [C1083] ‘VoiceModule.h’ not such file or directory.)

---

<div class="post-metadata">

**Author:** ![spyzn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spyzn/32/482168_2.png) [@spyzn](https://forums.unrealengine.com/u/spyzn)\
**Post date:** [October 4, 2022, 12:08pm UTC](https://forums.unrealengine.com/t/cant-use-fonlinesubsystembpcallhelper-in-my-projcte/403966/4 "2022-10-04T12:08:16Z")

</div>

You can simply avoid using the FOnlineSubsystemBPCallHelper and use fewer lines of code:

```auto
auto Sessions = Online::GetSessionInterface(WorldContextObject->GetWorld());

```

If you want the players unique net id then just use:

```auto
*PlayerController->PlayerState->GetUniqueId();

```

Makes it much more simple than trying to solve errors with the FOnlineSubsystemBPCallHelper.
