Pass Image or text data from MFC to c# application
-
Hi, I have a passport scanner to scan the passport image to the MFC client application. I was wondering if there is any method to enable the passport image populated on the MFC application could be able to transfer to another c# application an display on a popup window ?I am planning to form up a communication between the c++ and c# application, so that the passport image could be able to process in the c# web application once it was scanned from the MFC application connecting to the passport scanner. Thanks.
-
Hi, I have a passport scanner to scan the passport image to the MFC client application. I was wondering if there is any method to enable the passport image populated on the MFC application could be able to transfer to another c# application an display on a popup window ?I am planning to form up a communication between the c++ and c# application, so that the passport image could be able to process in the c# web application once it was scanned from the MFC application connecting to the passport scanner. Thanks.
It's just bytes... use one of the many IPC types[^]. Sockets are likely your most commonly used IPC nowadays for a number of reasons, but there's always other options that have different benefits (and drawbacks of course). For example, simply having a shared file would be very simple since you just have to write the file to a shared location and then have a way of notifying the other application of the new file to process (notice can be done via Windows message or other such messaging mechanism, or simply have one application launch the other and load the proper file via command line arguments). You have a lot of options, you have to decide what's important then implement accordingly. Happy coding! :)