don't know where to start

Oct 31, 2008 at 6:10 PM
Hi,
I have a problem and think this is the best tool I can find to fix it.
I have a new application that I have to write. It's an app to get measuring data from a high speed ccd-camera.
Everything works fine with most of the cameras. But know I got a new camera that doesn't work in my software.
I have to set many parameters in such cameras.

I have a Win32-tool (Winspec.exe) which works fine with this camera. It uses a win32-dll called "pvcam32.dll" that is responsible for camera communication.
In my app I use the same with a wrapper in c#.

Now my idea:
I want to inject a little routine in c# inside the pvcam32.dll that I get the information what parameters are set in the camera.
There are 2 interesting functions in the pvcam32.dll (in c# notation):

[DllImport("pvcam32.dll")] public extern static bool pl_get_param(Int16 hcam, UInt32 param_id, Int16 param_attribute, void* param_value);
[DllImport("pvcam32.dll")] public extern static bool pl_set_param(Int16 hcam, UInt32 param_id, void* param_value);

So can you give me a starting point what I have to do?

Best regards,
Juergen
Coordinator
Oct 31, 2008 at 6:15 PM
this is just a slight modification of the filemon demo... I think all required stuff is covered in the introduction PDF...
Nov 4, 2008 at 2:06 PM
Thank you for your fast replay.

I use now a changed ProcessMonitor for my injection.
It works perfectly and I get all the data that is send to the camera-dll.

Thank you very much for this great software.

Best regards,
Jürgen