I am new to visual studio, I am trying to run a sample CPP code from a company which connects to DCAM API application. I have checked the version of VS in .sln file and installed that version of VS.I tried running the code below
.........
// console/init_uninit
//
#include "../misc/console4.h"
#include "../misc/common.h"
#define USE_INITOPTION 0 // set DCAMAPI_INITOPTION when the value isn't 0.
#define USE_INITGUID 0 // set GUID parameter when the value isn't 0.
#if USE_INITOPTION
// set option of initialization
int32 initoption[] = {
DCAMAPI_INITOPTION_APIVER__LATEST,
DCAMAPI_INITOPTION_ENDMARK // it is necessary to set as the last value.
};
'C:\Windows\System32\DCAMAPI\Modules\Digital\fg1394oh.dll'. Module was built without symbols.
'init_uninit.exe' (Win32): Loaded 'C:\Windows\System32\hps1394.dll'. Module was built without symbols.
init_uninit.exe' (Win32): Unloaded
'C:\Windows\System32\DCAMAPI\Modules\Digital\dcamdig.dll' The thread 0x3060 has exited with code 1 (0x1). The thread 0x1ac has exited with code 1 (0x1). The thread 0x1280 has exited with code 1 (0x1). The program '[4456] init_uninit.exe' has exited with code 1 (0x1).
The symbols message is just informational. It's saying you can't step into the DLL calls themselves because the DLL was built without debugging symbols. You'd need to get a debug version of the DLL to debug into the calls, which I'm not sure exists.
However, this is more interesting:
The program '[4456] init_uninit.exe' has exited with code 1 (0x1).
Presumably, init_uninit.exe is referring to your program.
The only place where you set the return value to 1 is:
The point of user4581301's comment on the Stack Overflow page was to find documentation for this API to know where there is a function you can call that tells you the reason why the dcamapi_init call fails.
I glanced through Hamamatsu's website and didn't find any obvious documentation for the API publicly available. It looks like you have to sign up for their SDK to see any.
The DCIMG-SDK includes header and library files, API documentation and sample code. The current DCIMG-SDK supports C/C++ with increased language support expected in the near future.
So you need to read their API documentation to know more.