Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => COM Programming => Topic started by: Petr Schreiber on June 26, 2014, 07:05:34 PM

Title: PowerBASIC and WCF
Post by: Petr Schreiber on June 26, 2014, 07:05:34 PM
Hi José,

this might be a strange question, but as I have seen some COM access to .NET in the past, I wonder:
Is there any way I could connect to WCF (http://msdn.microsoft.com/en-us/library/dd456779%28v=vs.110%29.aspx) endpoint and perform some calls from PB code?


Thank you,
Petr
Title: Re: PowerBASIC and WCF
Post by: José Roca on June 26, 2014, 08:05:21 PM
You may need to write a .NET wrapper that is COM visible.

But there is not need for it, since there is a flat API:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd430466%28v=vs.85%29.aspx