In VB.NET:
_
Public Shared Function WebCamInitialize() As Integer
End Function
'This generates the error:
If NativeMethods.WebCamInitialize() <> 0 Then
In C++:
__declspec(dllexport) DWORD APIENTRY Initialize()
{
HRESULT hr = S_OK;
// Nothing to really do yet
return hr;
}
|