This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) |