- Home /
Unity and C++ MFC application
Is this possible to use Unity in C++ MFC application? I tried to add UnityWebPlayer ActiveX to MFC form, but I get the error: The ActiveX control "UnityWebPlayer Control" failed to initialize properly
. What am I doing wrong?
Thanks
Answer by Gamer2470 · Mar 03, 2012 at 11:08 AM
no! :) unity is not compatible with C++
Well, i wouldn't use this words since Unity is written in C++, but you're right: The Unity standalone player is already a C++ application and the webplayer was never ment to be embedded in another application except webbrowsers.
Just as side note: You can use C++/CLI to create managed assemblies which can be used in your Unity project, but you should stick to one of the official supported languages (C#, UnityScript, Boo) ;)
Answer by der_wolf · Apr 27, 2012 at 10:35 PM
Unfortunately I can't get access to my original (vitalys) account, that's why I've create a new one.
So, I tried to make a MFC application with integrated UnityWebPlayer via Browser ActiveX and communication via sockets. Unfortunately my application go to deadlock (or something similar) on socket connect. If the MFC application with controls and UnityWebPlayer works separate (player work in real browser, not in ActiveX control) they works perfect, but if they works in the same environment they freeze.
For all who tries to integrate unity to MFC with tricks: don't waste your time
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
using ActiveX in WebPlayer 1 Answer
how can i send a command from unity's activex control to my windows form application? 3 Answers
SendMessage() with ActiveX only works once? 1 Answer
Webplayer ActiveX 3 Answers