Using windowsform: open Windows Form with opcv From wpf windows on newest questions tagged winforms – Stack Overflow

note i am new in Wpf >
i have project that decode qr code by using opencv library throw web cam >
and it running successfully

now i wanna to using this project in new Wpf project >
after adding new wpf project and make reference to to winFrom application >

and this my simple code to open winfrom >

public void runnow(){
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new CameraCapture.cameraCapture()); }

by ruining give me this exception >

The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception.>

what can i do for solve this

See Answers


source: http://stackoverflow.com/questions/11633919/open-windows-form-with-opcv-from-wpf-windows
Using windowsform: using-windowsform



online applications demo