我已經(jīng)通過隱式調(diào)用dll方法通過了程序的調(diào)試. 現(xiàn)在想通過動態(tài)加載的方法調(diào)用dll. 但是不能打開設(shè)備, 請高手指點: 我用的代碼如下: typedef HANDLE (WINAPI *DllFunction)(long iIndex ); hinstDLL=NULL; hinstDLL=LoadLibrary("CH341DLL.dll"); if (hinstDLL) { DllFunction CH341OpenDevice; CH341OpenDevice = (DllFunction)GetProcAddress (hinstDLL,"CH341OpenDevice"); if(CH341OpenDevice(mIndex) == INVALID_HANDLE_VALUE) { m_open = false; } else m_open = true;
} FreeLibrary(hinstDLL);