PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → C Sharp dll callback
C Sharp dll callback
Started by Cemerin, Mar., 21 2017 2:49 PM - No answer
Posted on March, 21 2017 - 2:49 PM
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.