Пытаюсь импортнуть из своей дллки функции, но высирается такая хуйня. Код на C#: [DllImport("GraphicalUserInterface.dll")] public static extern void UpdateGameMode([MarshalAs(UnmanagedType.LPStr)] string new_gamemode); [DllImport("GraphicalUserInterface.dll")] public static extern bool ForceStartPressed(); [DllImport("GraphicalUserInterface.dll")] public static extern bool TakeHostPressed(); [DllImport("GraphicalUserInterface.dll")] public static extern bool AntiKickStatus(); [DllImport("GraphicalUserInterface.dll")] public static extern bool BypassPasswordsStatus(); [DllImport("GraphicalUserInterface.dll")] public static extern bool PlayerEspStatus(); [DllImport("GraphicalUserInterface.dll")] public static extern bool KeyEspStatus(); CSHARP [DllImport("GraphicalUserInterface.dll")] public static extern void UpdateGameMode([MarshalAs(UnmanagedType.LPStr)] string new_gamemode); [DllImport("GraphicalUserInterface.dll")] public static extern bool ForceStartPressed(); [DllImport("GraphicalUserInterface.dll")] public static extern bool TakeHostPressed(); [DllImport("GraphicalUserInterface.dll")] public static extern bool AntiKickStatus(); [DllImport("GraphicalUserInterface.dll")] public static extern bool BypassPasswordsStatus(); [DllImport("GraphicalUserInterface.dll")] public static extern bool PlayerEspStatus(); [DllImport("GraphicalUserInterface.dll")] public static extern bool KeyEspStatus(); Код на C++: extern void UpdateGameMode(const char* new_gamemode) { game_mode = new_gamemode; } extern bool ForceStartPressed() { return force_start; } extern bool TakeHostPressed() { return take_host; } extern bool AntiKickStatus() { return anti_kick; } extern bool BypassPasswordsStatus() { return bypass_passwords; } extern bool PlayerEspStatus() { return player_esp; } extern bool KeyEspStatus() { return key_esp; } C extern void UpdateGameMode(const char* new_gamemode) { game_mode = new_gamemode; } extern bool ForceStartPressed() { return force_start; } extern bool TakeHostPressed() { return take_host; } extern bool AntiKickStatus() { return anti_kick; } extern bool BypassPasswordsStatus() { return bypass_passwords; } extern bool PlayerEspStatus() { return player_esp; } extern bool KeyEspStatus() { return key_esp; }