PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → C Sharp dll callback
C Sharp dll callback
Débuté par Cemerin, 21 mar. 2017 14:49 - Aucune réponse
Posté le 21 mars 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.