1 Attachment(s)
Creating a proxy for LLamaSharp with TB to consume in VB6
Hello everyone!
I'm still using VB6 for most of my projects, as they're very large and take years to migrate. So far, I only use TwinBasic (TB) partially.
With help from this forum, I already managed to create a TB proxy to call 64-bit DLLs from VB6 (link: https://www.vbforums.com/showthread....th-64-bit-SAPI).
Now I have a new case:
I need to use LlamaSharp, which is a .NET6 binding for llama.cpp. I already use it from VB.NET successfully. But I really want to move away from .NET and call it directly from VB6, or at least get as close as possible by using TB.
Unfortunately, I don't think it can be wrapped into a simple COM DLL, since it's 64-bit and not COM-friendly.
Also, I'm not experienced with pipes or out-of-process communication and would prefer a simpler way if possible.
Does anyone have an idea how I could use LlamaSharp (or llama.cpp in general) from VB6, ideally with TB as a bridge?
I’ve attached a small VB.NET sample to show what I currently use.
Thanks a lot in advance!