I am new in imgui and just installed it with vcpkg and created an application in vs2022 and add these codes:
#include <imgui.h>
using namespace std;
void MySaveFunction()
{
}
int main()
{
ImGui::Text("Hello, world %d", 123);
if (ImGui::Button("Save"))
MySaveFunction();
}
but when I run this application I get this error:
What minimum code do I need to display a window with a button on it?
I searched on the IMGUI website but could not find any simple sample that works.