Core application with Vulcan/VO Dll

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
User avatar
gianluca.pinoli
Posts: 36
Joined: Mon Nov 02, 2015 1:13 pm
Location: Italy

Core application with Vulcan/VO Dll

Post 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 535 times
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Core application with Vulcan/VO Dll

Post by robert »

Gianluca,

The Vulcan code cannot run with .Net Core.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
gianluca.pinoli
Posts: 36
Joined: Mon Nov 02, 2015 1:13 pm
Location: Italy

Core application with Vulcan/VO Dll

Post by gianluca.pinoli »

Thanks Robert.
Just a quick (and probably stupid) question.
Do X#'s RDD will be usable in Core dialect?

Gianluca
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Core application with Vulcan/VO Dll

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
gianluca.pinoli
Posts: 36
Joined: Mon Nov 02, 2015 1:13 pm
Location: Italy

Core application with Vulcan/VO Dll

Post by gianluca.pinoli »

Thanks Wolfgang,
Setting my application for x86 only fixed my problem
Your're great.

Gianluca
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Core application with Vulcan/VO Dll

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Core application with Vulcan/VO Dll

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply