I have a little problem. The situation is that I have a Windows Form on which i render a DirectX frame.
So. The problem I have is that if I want to initialize a XMFLOAT4X4 (<xnamath.h>) I get an error.
I've realized that XMFLOAT4X4, XMVECTORF32, XMVECTOR ... evoke the error. On the other hand XMFLOAT3X3, XMFLOAT3,2 etc. work without any error or warning. Strange
"__clrcall cannot be used on functions compiled to native code" or
"This function cannot be compiled as managed"
All the problems occur because of this c++/cli - that's for sure because on native C++ all the xnamath stuff work. But I'm sure there must be a solution :/
Any idea how I can handle this problem? I can't imagine that it should not be possible to use the Microsoft's own xnamath lib.
Edited by ~Helgon, 27 December 2012 - 11:40 PM.