Search code examples
firemonkeyc++builder

TFireMonkeyContainer in C++ projects


I am trying to use FMX in VCL. Looks like there is a container TFireMonkeyContainer for it. I get an error 'Not an allowed type' on the hpp it generates. Here is how the code where it errors looks like

__property HWND FireMonkeyFormHandle = {read=GetHostedFMXFormWindowHandle, nodefault};

Basically I compiled the 10.1 seattle project from github and used the bpl and hpp it generated.

Has anyone worked with this container in C++?

Thanks.


Solution

  • This is solved in a recent update, and it can now be used in a C++ project fine. You may need to take care when both VCL and FMX headers are included (as in your define NO_USING_NAMESPACE_FMX_FORMS comment.) Please pull the latest from github.