Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
#include "windows.h" #include < string> #include <map> #include <set> #include <vector> #include <list> #include <algorithm> using namespace std;
При загрузке DLL под Win32 имя ее файла должно быть в ANSI. Хотя проект и под UNICODE. Почему?Не имя DLL должно быть в ANSI, а имя функции. Почему? Да потому что стандарт С разрешает использовать в именах функций (и других идентификаторах) только альфанумерик и _.
For Windows CE 3.0 and later, the ASCII version of this function, GetProcAddressA, is supported. With this version, the lpProcName parameter is of the type LPCSTR.
string f_name = ANSI(func_name);
FARPROC f = GetProcAddress(h, f_name.data());
const charT* data() const;
Returns: If size() is nonzero, the member returns a pointer to the initial element of an array whose first
size() elements equal the corresponding elements of the string controlled by *this. If size() is
zero, the member returns a non-null pointer that is copyable and can have zero added to it.
Программирование под Windows CE с помощью Embedded Visual C++, часть 1