I have created a window using Dev-C++ as a windows application (not console application) and I want to access the PostgreSql database through my C++ code from the windows code for executing simple queries and display the result in that window. I tried searching on internet for connection codes but constantly getting errors and none worked.
I tried both the C and C++ codes and the respective procedures to connect. Can anyone help me get through this? Help is appreciated!