Results 1 to 10 of 10

Thread: Lianja extensions in server-side procedures?

  1. #1
    Junior Member
    Join Date
    Feb 2016
    Posts
    13

    Lianja extensions in server-side procedures?

    Hi everyone,

    I'm wondering how to add Lianja extensions to server-side code? In a desktop app you put the dll in the lianja/extensions folder and modify extensions.ini. My extension in there works fine if you run my app as a desktop app. I've done the same thing for lianja/cloudserver/tenants/public/extensions but it doesn't seem to work for me when I preview my app in browser. Is there something extra I should be doing?

    For reference, in my little test app I have a little proc called testextension.prg which when called creates an object from the extension and returns "successful" if it worked. I then call that on a commandbutton click with Lianja.evaluate() in my app. On desktop this works and "successful" is returned but in a webapp it spits out the page not found error in the browser console which as I understand it simply means "something went wrong and your call didn't work".

    Any help would be greatly appreciated,
    Ryan

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,729
    Blog Entries
    18
    Hi Ryan,

    What are you wanting to achieve. Extensions are written in C/C++. Are you just wanting to use Lianja/VFP libraries? If so just open thenm using SET PROCEDURE TO filename ADDITIVE or REQUIRE().

    Incudentally, you can only use compiled code with the cloud server so you need the .dbo files.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Junior Member
    Join Date
    Feb 2016
    Posts
    13
    I have a third party Lianja extension whose functions I want to access in my code. Specifically I want to call them in my server-side procs. I have no access to the source code but it comes as a .dll file so I would assume it's written with the C/C++ API?

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,729
    Blog Entries
    18
    Are you able to use this in desktop development mode? Is this a chilkat extension?
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Junior Member
    Join Date
    Feb 2016
    Posts
    13
    Yes it works fine in desktop development mode. It is indeed the chilkat extension!

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,729
    Blog Entries
    18
    Try manually loading it with a full path.
    http://www.lianja.com/doc/index.php/LOADLIBRARY()

    if if that fails submit a ticket and I will investigate it.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  7. #7
    Junior Member
    Join Date
    Feb 2016
    Posts
    13
    After a bit of testing with loadlibrary it looks like the library gets loaded as it should, even without needing to do it manually, but the createobject command fails when I attempt to build a chilkat object. I'll submit a ticket.
    Last edited by rhoward; 2016-02-16 at 20:53.

  8. #8
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,729
    Blog Entries
    18
    Maybe there is a dependency missing that needs copied into the same directory as your dll is in.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  9. #9
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,144
    Hi Barry,

    I can confirm that on the current Beta build, the Chilkat Crypt2 extension does load in .rsp pages (you fixed #4264 on 15Nov2015). Perhaps Ryan would need to test on the current Beta, was this after the 2.01 release.

    Hank

  10. #10
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,729
    Blog Entries
    18
    Hi Hank,

    Ryan is an ISV so he has access to the v2.1 beta which he should download and install.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us