Re: [Firebird-devel] Pure C methods for IBatch

2022-01-18 Thread Jiří Činčura
> public delegate* unmanaged[Cdecl] FIREBIRD_IStatus*> getStatus; I completely ruled out function pointers because I still support .NET Framework and it's not supported there. But on the second thought this might be a nail in the coffin of .NET Framework support. Thanks for kicking me.

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-18 Thread Adriano dos Santos Fernandes
On 17/01/2022 17:31, Jiří Činčura wrote: >> I suspect you didn't understand well how easy it is. > > I'm all ears. Or actually eyes - I'll be glad to learn some new C#/.NET > interop tricks. > I'd not say it's tricks, certainly not for you. I just see no difficulty in this more than the C

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Jiří Činčura
> I suspect you didn't understand well how easy it is. I'm all ears. Or actually eyes - I'll be glad to learn some new C#/.NET interop tricks. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Adriano dos Santos Fernandes
On Mon, Jan 17, 2022 at 4:49 PM Jiří Činčura wrote: > > Similar thing could be done for C#. > > Again, I'm not saying it couldn't be done. > > It's just with simple export I can call it right here, right now (i.e. >

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Jiří Činčura
> Similar thing could be done for C#. Again, I'm not saying it couldn't be done. It's just with simple export I can call it right here, right now (i.e. https://github.com/FirebirdSQL/NETProvider/blob/master/src/FirebirdSql.Data.FirebirdClient/Client/Native/IFbClient.cs#L83-L85). It's there,

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Adriano dos Santos Fernandes
On 17/01/2022 15:36, Jiří Činčura wrote: >> The "C library" is just another way to call things. >> >> It's binary compatible with the C++ interface. In fact the C++ interface >> is a wrapper around C objects to be multi compiler compatible. > > Sure, I'm not saying it isn't. > > It's just way

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Jiří Činčura
> The "C library" is just another way to call things. > > It's binary compatible with the C++ interface. In fact the C++ interface > is a wrapper around C objects to be multi compiler compatible. Sure, I'm not saying it isn't. It's just way way harder to do this type of interop from C# compared

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Adriano dos Santos Fernandes
On 17/01/2022 11:00, Jiří Činčura wrote: >> Yes - because we can generate pure C OO API in a form I've attached here >> for illustration. > > That would work for me. :) > >> No - we never included it into distribution because currently it's not >> ready for use, some tuning will be needed.

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Jiří Činčura
> Yes - because we can generate pure C OO API in a form I've attached here > for illustration. That would work for me. :) > No - we never included it into distribution because currently it's not > ready for use, some tuning will be needed. Next, you will have to use > shared library based on

Re: [Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Alex Peshkoff via Firebird-devel
On 1/17/22 15:02, Jiří Činčura wrote: Hi *, I'm looking at 12.batch_isc.cpp and wondering whether there's a way to do batching using pure C methods [1]. Something like simply calling isc_dsql_prepare instead of IAttachment::prepare. I know I can handle the "this" manually, but that's PIA. :)

[Firebird-devel] Pure C methods for IBatch

2022-01-17 Thread Jiří Činčura
Hi *, I'm looking at 12.batch_isc.cpp and wondering whether there's a way to do batching using pure C methods [1]. Something like simply calling isc_dsql_prepare instead of IAttachment::prepare. I know I can handle the "this" manually, but that's PIA. :) -- Mgr. Jiří Činčura