Type: Posts; User: marco.bernasconi
Search took 0.00 seconds.
February 21st, 2014, 07:31 AM
I've posted a partial code for simplicity.
The entire class is the following:
ref class CameraHook
February 21st, 2014, 06:20 AM
I have a C++/CLI console application and I should pass a CComPtr<T> to a class but when I try to access it, occours a System.AccessViolationException.
Following the main code:
February 12th, 2014, 02:54 PM
I didn't know that there are different registries for COM class.
I'm not a guru in this field :)
Thanks for all!
February 12th, 2014, 08:24 AM
That's the trick!!!
February 12th, 2014, 05:57 AM
Mmmh...in the registry (HKEY_LOCAL_MACHINE/SOFTWARE/Classes) I see OnSSI.OCAdapter.1.
I've registered it using regasm.
February 12th, 2014, 04:21 AM
The value is -2147221164.
February 12th, 2014, 03:37 AM
I'm following a sample from a third part SDK.
In particular this piece of code:
December 9th, 2013, 03:32 PM
Thanks a lot...it helps me!
I've another question about this callback.
I discovered from documentation that the second param of the DVR_OnCameraCallback must be an array of...
December 9th, 2013, 06:07 AM
The szCamName now is right.
But the other values are wrongs again.
The documentation is the following:
December 9th, 2013, 04:49 AM
the callback is working!
If I watch into cI object, I see that the values are wrong but the struct ST_EACH_CAMERA_INFO in the Interop class seems to be correct.
December 9th, 2013, 03:11 AM
Yes I've tried also with your code but I don't know how to call:
_cameraInfo.lpfnCameraCallback = (hS, cI) =>
// some code
December 6th, 2013, 10:23 AM
Do you mean something like this?
public delegate void DVR_OnCameraCallback(ref UIntPtr hServer, ref ST_EACH_CAMERA_INFO lpstEachCameraInfo);...
December 6th, 2013, 04:26 AM
I need to create a C++ callback call in C#.
Following the third part SDK documentation:
November 19th, 2013, 12:35 PM
Thank you!!! It works.
I have another question. The documentation says:
The lpOutBuffer must be a struct like the following:
November 18th, 2013, 10:06 AM
now I'm struggling to make work properly another function, following my piece of code:
public static extern bool NET_DVR_CaptureJPEGPicture(int...
November 14th, 2013, 11:25 AM
Great Tron it's working!
I think that I will study the MarshalAs attribute :)
November 14th, 2013, 09:20 AM
I'm Marco and I'm a .NET software developer. I'm developing a C# console application based on a C++ set of DLLs using the DllImport attribute.
The C++ DLLs are part of a Video...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!