I am trying to call this function in a c++ dll:
public static void AskTrade(string traderPartnerId)
What I do to call this is:
auto Trade = reinterpret_cast<void(*)(std::string)>(BaseAddress + 0xDE54B0);
Trade(D39DSAR2);
It is inside of a special void that makes the calling work. Because when I call functions without any variables or functions with int as variables, it does work.
But when I try to call this, nothing happens. The game is c# and I code in c++, that must be the reason I guess. I don't know how to fix it though.
I would very much appreciate it if any of you would know and tell me a solution.