xsharp.eu • Core application with Vulcan/VO Dll
Page 1 of 1

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 2:24 pm
by gianluca.pinoli
Hi All,
I'm trying to create a simple lib with a static method for access to a DBF file.

**********************************************************************************************
USING System
USING System.Collections.Generic
USING System.Linq
USING System.Text
using Vulcan.RDD
using Vulcan.Runtime
using Vulcan.VO

BEGIN NAMESPACE TestLibrary
public static class ClassDBF

PUBLIC static METHOD GetDescrizione() AS String
LOCAL oDB as DBServer
local sRet as string
oDB := DBServer{"C:GDOSHOPARCHIVI9ARTICOK.DBF",FALSE,TRUE,"DBFCDX"}
oDB:GoTop()
sRet := (STRING)oDB:FIELDGET("DESCRIZIO")
oDB:Close()
return sRet
END CLASS
END NAMESPACE
********************************************************************************************************

This work fine if called froma a Vulcan application (both consol or winform), but give error in a Core application even if i add reference to VulcanRT,VulcanRTFuncs,VulcanVORDDClasses,VulcanVOSystemClasses.

Is this somenting possible?

Regards
Gianluca Pinoli
Errore.png
Errore.png (25.18 KiB) Viewed 528 times

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 2:52 pm
by robert
Gianluca,

The Vulcan code cannot run with .Net Core.

Robert

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 3:10 pm
by gianluca.pinoli
Thanks Robert.
Just a quick (and probably stupid) question.
Do X#'s RDD will be usable in Core dialect?

Gianluca

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 3:14 pm
by wriedmann
Hi Gianluca,

first it seems your X# application uses AnyCPU to compile and is running in x64 (64 bit ) mode. The Vulcan runtime is x86 (32 bit ) only.

You can access DBF files also from a Core dialect application if you build an intermediate library that has only classes with native .NET datatypes.

With .NET Core applications I have no experience.

Wolfgang

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 3:30 pm
by gianluca.pinoli
Thanks Wolfgang,
Setting my application for x86 only fixed my problem
Your're great.

Gianluca

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 4:12 pm
by robert
Gianluca,

We are developing the RDDs fully in managed code, for .Net Framework 4.6, using AnyCPU.
As you can see in the following table, that means that it will work with .Net Core 1.0 and later, as well as Xamarin 10, Mono 4.6 etc.
I must admit that we have not tested against all of these version of .Net yet.

https://docs.microsoft.com/en-us/dotnet ... t-standard

Robert

Core application with Vulcan/VO Dll

Posted: Thu Aug 30, 2018 5:19 pm
by wriedmann
Hi Robert,

I'm looking forward to run my first X# web service on a Linux machine.... I have several of them, and DBFs are very easy to use as data storage.

Wolfgang