От: | cargo | ||
Дата: | 08.07.08 09:54 | ||
Оценка: |
[DllImport("kernel32.dll", SetLastError=true)]
private static extern int LoadLibrary(string path);
[DllImport("kernel32.dll", SetLastError = false)]
private static extern Int32 GetLastError();
hInstance = LoadLibrary(fPath);
if (hInstance == 0) {
MessageBox.Show(GetLastError().ToString());
}