fbpx
× Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET

Core application with Vulcan/VO Dll

More
4 months 3 weeks ago #1 by Gianluca Pinoli
Core application with Vulcan/VO Dll was created 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:\GDOSHOP\ARCHIVI9\ARTICOK.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
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic Core application with Vulcan/VO Dll
Gianluca,

The Vulcan code cannot run with .Net Core.

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #3 by Gianluca Pinoli
Replied by Gianluca Pinoli on topic Core application with Vulcan/VO Dll
Thanks Robert.
Just a quick (and probably stupid) question.
Do X#'s RDD will be usable in Core dialect?

Gianluca

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #4 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic Core application with Vulcan/VO Dll
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

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #5 by Gianluca Pinoli
Replied by Gianluca Pinoli on topic Core application with Vulcan/VO Dll
Thanks Wolfgang,
Setting my application for x86 only fixed my problem
Your're great.

Gianluca

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #6 by Robert van der Hulst
Replied by Robert van der Hulst on topic Core application with Vulcan/VO Dll
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.

docs.microsoft.com/en-us/dotnet/standard/net-standard

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #7 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic Core application with Vulcan/VO Dll
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

Please Log in or Create an account to join the conversation.