我需要使用外部dll与数码相机进行通信,我发现程序带有适当的dll,可以实现通信.在dll描述中,我找到了适合我需要的功能.DLL Header看起来像这样....
//-------------------------------------------------------------------
// ReleaseShutter()
// Inputs:
// timeOutInSecs timeout in secs to wait for picture to be
// taken and downloaded (max 60 secs)
// pszFilename option string in which to store the name of the
// saved image. Set to NULL if not required
// numChars length of pszFilename if defined
//
// Returns:// 0 - Success, image saved
// 1 - PSRemote is not running
// 2 - PSRemote is running but camera is not connected
// …Run Code Online (Sandbox Code Playgroud)