|Topic was automatically imported from the old Question2Answer platform.
I’m making a .dll for godot, so far everything work if I only receive values from .dll, but now I need to send values to the .dll from godot, but ClassDB and D_METHOD aren’t recognized by Visual Studio.
I’ve compiled the godot-cpp with headers generating the bindings and binaries, added the paths include, include/core, include/gen and the .libs in the project’s properties, but only when I try to include “class_db.h” and make use of ClassDB::bind_method(D_METHOD(“myMethod”, “argName”), &MYCustomClass::myMethod); Visual studio flags CLassDB and D_METHOD as undefined
I’ve tried including the path “C:\godot-3.2.2-stable\core” to the project properties but then other Classes are flagged as ambiguous if i try to rebuild the project.
What is the correct way to make use of ClassDB::bind_method in a visual studio project