# Embed/Integrate output from UE4 into a C++ application

**URL:** <https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705>\
**Category:** C++\
**Tags:** Graphics, merge, unreal-engine, UE4, CPP, question\
**Created:** [October 30, 2018, 2:23pm UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705 "2018-10-30T14:23:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AfroDiscoKappa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AfroDiscoKappa](https://forums.unrealengine.com/u/AfroDiscoKappa)\
**Post date:** [October 30, 2018, 2:23pm UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705/1 "2018-10-30T14:23:40Z")

</div>

I need to “merge” in some way a big application (with UI) and the output given by UE4.

The idea is to send commands from the app to UE in which they are executed. Basically the commands will be either a start/stop for a sequencer or a level change. UE will be the graphical engine and the app is the brain.

If anyone has pointers to give me, I’m a bit lost…

Note: I do NOT want to use Slate because that means changing my big application.

EDIT:

Maybe the best way to describe what I want to do is the following:

- I want to use the graphical renderer of UE4 inside another app (my big application).
- I want to be able to launch Sequencers, triggered by the user (via buttons in my app).

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [October 30, 2018, 7:29pm UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705/2 "2018-10-30T19:29:50Z")

</div>

This can be done by so many ways, you can read what is possible in windows here:

> **[Interprocess Communications - Win32 apps](https://learn.microsoft.com/en-us/windows/win32/ipc/interprocess-communications)**
>
> The Windows operating system provides mechanisms for facilitating communications and data sharing between applications. Collectively, the activities enabled by these mechanisms are called interprocess communications (IPC).

But most straight forward and universal way is to simply use TCP/IP networking via sockets. Make a listen socket on UE4 game and connect to it to app (you can use loopback IP address 127.0.0.1 which will work even on hardware without network adapter). Then you just send data of you desire, you can use anything bytes, text whatever you like. Here tutorial on sockets on wiki, but wiki currently is bugged so code formating messed up, but you can loop it up in “View Source”

> **[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...

There also pipes mentioned in first link you can use anonymous pipes using FPlatfromProcess and CreatePipe and close with ClosePipe

> **[FGenericPlatformProcess](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Core/GenericPlatform/FGenericPlatformProcess/)**
>
> Generic implementation for most platforms, these tend to be unused and unimplemented

---

<div class="post-metadata">

**Author:** ![AfroDiscoKappa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AfroDiscoKappa](https://forums.unrealengine.com/u/AfroDiscoKappa)\
**Post date:** [November 5, 2018, 7:52am UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705/3 "2018-11-05T07:52:55Z")

</div>

Is it possible to merge the two applications into a single one where unreal has only access to a canvas?  
The goal being to avoid using TCP/IP or IPC, using only in-app commands. You can see a rough example of what I mean below.

 ![258539-example.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/7/467661e8411f795466722f96109411ad5a636850.png)

---

<div class="post-metadata">

**Author:** ![AfroDiscoKappa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AfroDiscoKappa](https://forums.unrealengine.com/u/AfroDiscoKappa)\
**Post date:** [November 5, 2018, 7:59am UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705/4 "2018-11-05T07:59:08Z")

</div>

Maybe the best way to describe what I want to do is the following:

- I want to use the graphical renderer of UE4 inside another app (my big application).
- I want to be able to launch Sequencers, triggered by the user (via buttons in my app).

---

<div class="post-metadata">

**Author:** ![AfroDiscoKappa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AfroDiscoKappa](https://forums.unrealengine.com/u/AfroDiscoKappa)\
**Post date:** [November 15, 2018, 12:33pm UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705/5 "2018-11-15T12:33:39Z")

</div>

I’ll do this using plugin like the AJA or BlackMagic plugin (for sdi) and re-route the output to a DirectX shared resource. I’m currently doing this implementation and hope this will work.

---

<div class="post-metadata">

**Author:** ![ALSH1036](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ALSH1036](https://forums.unrealengine.com/u/ALSH1036)\
**Post date:** [February 14, 2024, 2:17pm UTC](https://forums.unrealengine.com/t/embed-integrate-output-from-ue4-into-a-c-application/436705/6 "2024-02-14T14:17:16Z")

</div>

Hi, I was writing to you to know if you solved how to insert an Unreal Engine game into a Windows application. thanks
