Hi Marco,

as this is in general a question regarding Marshalling and Platform Invoke 
(P/Invoke), which is out of our scope, we would like to refer you to one of the 
many P/Invoke tutorials on the web or in the MSDN library.

Best regards,
Stefan
________________________________________
Von: Marco Dev [marco.dev.o...@gmail.com]
Gesendet: Donnerstag, 18. Juni 2015 18:22
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] mitk .dll

Hi dears,
Is possible load mitk .dll in .net platform I do this work But for simple 
method it work but for mitk function does not work  my code is follow bellow


#include <stdio.h>
#include <QmitkRenderWindow.h>

#include "QmitkRegisterClasses.h"


extern "C"
{
__declspec(dllexport) int add(int a, int b)
{
return a + b;
}
__declspec(dllexport) int subtract(int a, int b)
{
return a - b;
}
__declspec(dllexport) void show()
{

       QmitkRegisterClasses();

QmitkRenderWindow * m_Window = new QmitkRenderWindow();
m_Window->resize(300,500);
m_Window->setWindowTitle("Hello from MITK to C#");
m_Window->show();
}

}

add and subtract methods are work but show function does not work
Thanks in advance

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to