calling mil libraries from Java
Hello,
I am developing an application for capturing video signals from a Matrox card.
I want to display the image on a java panel and for this purpouse I need the window handler. My problem is that I don't know how to get this handler from java side and then passit to the "c" side.
I succeed using this snippet code:
MIL_ID MilApp, MilSys, MilDisp, MilDig, MilIm;
MappAllocDefault(M_SETUP, &MilApp, &MilSys, &MilDisp, &MilDig, &MilIm);
MdigGrabContinuous(MilDig, MilIm);
printf("Catchin signal...\n");
getchar();
MdigHalt(MilDig);
MappFreeDefault(MilApp, MilSys, MilDisp, MilDig, MilIm);
The problem is that here I display the image into a default window and I want to display it into a Java panel.
Thank you in advance.
ps.: Please can you also post the answer to d.delpozo@ibermatica.com

