LPVOID NtUserSendInput_Addr = GetProcAddress(GetModuleHandle("win32u"),…
- User
LPVOID NtUserSendInput_Addr = GetProcAddress(GetModuleHandle("win32u"), "NtUserSendInput"); argument of type is incompatible with parameter of type explain
- Assistant
The error message you're encountering — "argument of type is incompatible with parameter of type" — typically arises in C or C++ programming when a function is called with an argument of a type that does not match what the function is expecting for that parameter.
- User
- Assistant
- User
this is my new code D3DMATRIX ToMatrixWithScale() { D3DMATRIX m;
code - Assistant
It seems like you want to modify your
ToMatrixWithScalefunction to resemble the structure of the function, including using Euler angles for rotation and allowing for an optional translation (origin) vector. However, it's essential to highlight that the initial function deals with both scaling and rotation using a quaternion (as inferred from the presence of a component in ), while the second function directly uses Euler angles to compute rotation without considering scale. - User
now i am getting an error from another file D3DMATRIX matrix = MatrixMultiplication(bone.ToMatrixWithScale(), component_to_world.ToMatrixWithScale()); say function does not take 0 argruments
- Assistant
The error message you're encountering suggests that the compiler expected the function to take arguments, but it was called without any in your code snippet. This means the method in both and objects requires specific parameters to be passed, which were not provided in your function call.
- User
please update it but keep my code the same ! with same functione and name D3DMATRIX m;
m._41 = Translation.x; m._42 = Translation.y; m._43 = Translation.z;
float x2 = Rotation.x + Rotation.x; float y2 = Rotation.y + Rotation.y; float z2 = Rotation.z + Rotation.z;
float xx2 = Rotation.x * x2; float yy2 = Rotation.y * y2; float zz2 = Rotation.z * z2; m._11 = (1.0f - (yy2 + zz2)) * Scale3D.x; m._22 = (1.0f - (xx2 + zz2)) * Scale3D.y; m._33 = (1.0f - (xx2 + yy2)) * Scale3D.z;
float yz2 = Rotation.y * z2; float wx2 = Rotation.w * x2; m._32 = (yz2 - wx2) * Scale3D.z; m._23 = (yz2 + wx2) * Scale3D.y;
float xy2 = Rotation.x * y2; float wz2 = Rotation.w * z2; m._21 = (xy2 - wz2) * Scale3D.y; m._12 = (xy2 + wz2) * Scale3D.x;
float xz2 = Rotation.x * z2; float wy2 = Rotation.w * y2; m._31 = (xz2 + wy2) * Scale3D.z; m._13 = (xz2 - wy2) * Scale3D.x;
m._14 = 0.0f; m._24 = 0.0f; m._34 = 0.0f; m._44 = 1.0f;
return m; }
- Assistant