Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
9
Erster Beitrag:
vor 8 Jahren, 5 Monaten
Letzter Beitrag:
vor 8 Jahren, 3 Monaten
Beteiligte Autoren:
DW, Alan, Fabrice Harari

Calling a Windev procedure from C# app

Startbeitrag von DW am 16.07.2009 14:02

Hello All,

I have been playing with trying to call a procedure from a C sharp app. I read the help on external language and was able to call a Windev function (Info) and opened a window from my app. But I could not get any of my global procedures or window procedures to work. I did try ExecuteProcess but did not work.

Can this be done?

Dennis W

Antworten:

Hi Dennis...

it's supposed to be possiblme (there is an article about it in LST 77) by doing a call with the syntax "EXECUTE,ProcedureName.PRO"

best regards



von Fabrice Harari - am 16.07.2009 14:40
Hello Fabrice,

You are correct sir. The procedure has to have the .PRO at the end to work.

// Call the Hello World Procedure
WinDev.CALLWD("Execute,gp_SayHello.PRO,trtProcedure");

Thank you,

Dennis W

von DW - am 16.07.2009 18:21
Fabrice,

Does the article say how to pass a parameter to your procedure?

I tried

WinDev.CALLWD("Execute,gp_SayHello.PRO,Dennis,trtProcedure");

Dennis W

von DW - am 19.07.2009 22:45
Hi Dennis;

not precisely no, but it also doesn't include the trtProcedure parameter you are using... So I would think that it would be

WinDev.CallWD("EXECUTE,GP_SayHello.PRO,Param1,Param2,Param3...")

Best regards



von Fabrice Harari - am 21.07.2009 17:53
Thanks for the response Fabrice,

I tried that and a lot of other things but not luck. I sent it to Tech support to see if they could help I will post the answer when it comes in.

Dennis W

von DW - am 21.07.2009 20:30
Fabrice,

The answer from PCSoft was to compile the project as a .net dll instead of a Windev library and call the functions from the C# app. So I did and it works fine.

Once again thank you for your help.

Dennis W

von DW - am 27.07.2009 21:10
Hi Dennis,

Would you be good enough to tell me how you compile the project as a .net dll please? As in what the options are you have to take to achieve that.

Many thanks

Alan

von Alan - am 24.08.2009 17:22
Ah, its ok, I see that it cannot be done from WinDev Mobile, or seems that way anyway.

von Alan - am 24.08.2009 18:28
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.