I have a Visual Studio C++ .EXE project that opens a window and display a live, grayscale image OK.
I changed project to .DLL so imagine generation methods can be called (COM) by a C# project, and this works OK.
How can I, for debugging, have the DLL also run its normal windows dialog, to open and display its window to show live image, just like the .EXE does?
Project Configuration: "Use MFC in a Shared DLL", "Not Using ATL", "Common Language Runtime Support (/clr)"
I've tried an access function in DLL that does: "theApp.InitInstance();"
but it crashes DLL (debug assert) at: "INT_PTR nResponse = dlg.DoModal();"
(Frame display rate will be under 60 frames per second. The .EXE or .DLL generates frame in a buffer that is 512 pixels wide, 512 pixels high, with 8 to 32 bits per pixel, depending on settings.)
software developer