x


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

more ▼

asked Mar 03 '12 at 03:23 AM

vitalys gravatar image

vitalys
16 1 1 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

no! :) unity is not compatible with C++

more ▼

answered Mar 03 '12 at 11:08 AM

Gamer2470 gravatar image

Gamer2470
11 1 3

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) ;)

Mar 03 '12 at 12:41 PM Bunny83
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Apr 27 '12 at 10:35 PM

der_wolf gravatar image

der_wolf
32 2 2 3

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x815
x11

asked: Mar 03 '12 at 03:23 AM

Seen: 655 times

Last Updated: Apr 27 '12 at 10:35 PM