I had already set up the project's environment and build project succeed,but it will happen interruption because the hmodule it return NULL. I found the reason in debug is character loading bad, but i can't deal with it.

#include <windows.h>
#include "mysql.h"
#pragma comment(lib,"libmysql.lib")

int main()
    MYSQL mysql; // it can't load the character correctly
    return 0;

this is the runing picture enter image description here

0 Answers