Simulating a disk file with a memory file?
-
hi. I have a problem: I have the content of a file read in a BYTE array and i want to open that file with a COM component within my app. The problem is that this COM component only accepts files from a logical disk path. I can't write it to disk and then tell the COM component to fetch it because i have security issues and it would be very bad. Is there a way to simulate it or is there a very good way to camuflage a temporary file?(it cant be deleted while the program is in use) Thanks in advance!!
-
hi. I have a problem: I have the content of a file read in a BYTE array and i want to open that file with a COM component within my app. The problem is that this COM component only accepts files from a logical disk path. I can't write it to disk and then tell the COM component to fetch it because i have security issues and it would be very bad. Is there a way to simulate it or is there a very good way to camuflage a temporary file?(it cant be deleted while the program is in use) Thanks in advance!!
Try to use CMemFile MFC class.