PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → C Sharp dll callback
C Sharp dll callback
Iniciado por Cemerin, 21,mar. 2017 14:49 - No hay respuesta
Publicado el 21,marzo 2017 - 14:49
Hi all!
I'me trying to Programm a C-sharp dll to unify Hardware access .
The idea was: Run WD app -> call dll -> open thread to handle Hardware -> call WD on event.
Unfortunately I can't get the cs-code to call WD-elements:
WinDev.CALLWD("Library,Disk,EventTest.wdl");
   if (WinDev.WDInt() == 0)
   {
      WinDev.CALLWD("Beep");                 // <- Works
      WinDev.CALLWD("DISPLAY,EDT_Call=7");   // <- Doesn't work
   }

I tried including the WD Framework dlls and using the "c# external language example" but couldn't get neither to work.
So, what is required to make it work, or is there a different sollution that would be better?
Any help is appreciated as I am still rather new to WD.