i added libmysql.dll as resource to my project
ID_LIBMYSQL RT_RCDATA "LIBMYSQL.DLL"
Image view :: http://s18.postimage.org/bcpf2s9jt/Untitled.png
now when i try to find it using findresource function , i get error code : 1812 mean resource not found
HMODULE hMod = GetModuleHandle(_T("libmysql.dll"));
HRSRC hRes = FindResource (NULL, "ID_LIBMYSQL", RT_RCDATA); // RT_RCDATA application raw data
// get last error code
cout<<"\n error code: "<<GetLastError();