Skip to content

Instantly share code, notes, and snippets.

CString szStr(_T("Provider=SQLOLEDB.1;SERVER=192.168.0.121;UID=sa;PWD=12345;DATABASE=jinhe;"));
CString sKey = _T("z12345");
typedef CString (PASCAL EXPORT *BuildNcProgram)(const CString&, const CString&,const CString&);
HINSTANCE hDLL;
hDLL = LoadLibrary(_T("BuildNcProgram.dll"));
if (NULL != hDLL)
{
BuildNcProgram Building =(BuildNcProgram)GetProcAddress(hDLL, _T("BuildNcProgram"));
if (NULL != Building )