Vulcan Runtime example
Posted: Mon Feb 29, 2016 8:56 pm
Hi,
I tried the 'Vulcan Runtime' example in XIDE and VS2015.
In XIDE worked by:
------------------
1. Adding a Reference to VulcanRT (not the VulcanRTFuncs)
2. Using the 'USING':
#USING System
#USING System.Collections.Generic
//#USING System.Linq
//#USING System.Text
//#USING Vulcan
//#USING VulcanRTFuncs
#USING XSharpVulcanTest
//#USING STATIC VulcanRTFuncs.Functions // allows us to use methods of this class as if they were functions
but it wasn't possible to enable the VulcanRTFuncs and use the:
//#USING STATIC VulcanRTFuncs.Functions // allows us to use methods of this class as if
in this case, appears the error:
"error VN2700: expecting ID, found 'STATIC' 13,8 File1.prg XSharpVulcanTest
Build failed"
In VS2015, I succeeded to build the project, (but the result didn't run) with the warning:
1>------ Build started: Project: UseVulcan, Configuration: Debug Any CPU ------
1>C:Program Files (x86)MSBuild14.0binMicrosoft.Common.CurrentVersion.targets(1819,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "VulcanRTFuncs", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1> UseVulcan -> C:UsersGeorgeDocumentsVisual Studio 2015ProjectsXSharpUseVulcanbinDebugUseVulcan.exe
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
At that time, I reference also the Vu;canRTFuncs.
Then, I tried to correct it using the XIDE's experience, but now I get:
1>------ Build started: Project: UseVulcan, Configuration: Debug Any CPU ------
1>Program.prg(23,37): error XS0246: The type or namespace name '__VODATE' could not be found (are you missing a using directive or an assembly reference?)
1>Program.prg(23,26): error XS0103: The name 'Today' does not exist in the current context
1>Program.prg(27,29): error XS0246: The type or namespace name '__VODATE' could not be found (are you missing a using directive or an assembly reference?)
1>Program.prg(34,25): error XS0103: The name 'Today' does not exist in the current context
1>Program.prg(34,20): error XS0103: The name 'DTOS' does not exist in the current context
1>Program.prg(39,15): error XS0103: The name 'SubStr' does not exist in the current context
1>Program.prg(43,15): error XS0103: The name 'At' does not exist in the current context
1>Program.prg(47,57): error XS1955: Non-invocable member 'Empty' cannot be used like a method.
1>Program.prg(49,57): error XS1955: Non-invocable member 'Empty' cannot be used like a method.
1>Program.prg(53,15): error XS0103: The name 'Pow' does not exist in the current context
1>Program.prg(57,21): error XS0246: The type or namespace name '__Array' could not be found (are you missing a using directive or an assembly reference?)
1>Program.prg(58,15): error XS0103: The name 'ArrayNew' does not exist in the current context
1>Program.prg(59,10): error XS0103: The name 'AAdd' does not exist in the current context
1>Program.prg(60,10): error XS0103: The name 'AAdd' does not exist in the current context
1>Program.prg(61,10): error XS0103: The name 'AAdd' does not exist in the current context
1>Program.prg(62,64): error XS0103: The name 'ALen' does not exist in the current context
1> XSharp Compilation time: 00:00:03.1294744
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
I tried the 'Vulcan Runtime' example in XIDE and VS2015.
In XIDE worked by:
------------------
1. Adding a Reference to VulcanRT (not the VulcanRTFuncs)
2. Using the 'USING':
#USING System
#USING System.Collections.Generic
//#USING System.Linq
//#USING System.Text
//#USING Vulcan
//#USING VulcanRTFuncs
#USING XSharpVulcanTest
//#USING STATIC VulcanRTFuncs.Functions // allows us to use methods of this class as if they were functions
but it wasn't possible to enable the VulcanRTFuncs and use the:
//#USING STATIC VulcanRTFuncs.Functions // allows us to use methods of this class as if
in this case, appears the error:
"error VN2700: expecting ID, found 'STATIC' 13,8 File1.prg XSharpVulcanTest
Build failed"
In VS2015, I succeeded to build the project, (but the result didn't run) with the warning:
1>------ Build started: Project: UseVulcan, Configuration: Debug Any CPU ------
1>C:Program Files (x86)MSBuild14.0binMicrosoft.Common.CurrentVersion.targets(1819,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "VulcanRTFuncs", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1> UseVulcan -> C:UsersGeorgeDocumentsVisual Studio 2015ProjectsXSharpUseVulcanbinDebugUseVulcan.exe
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
At that time, I reference also the Vu;canRTFuncs.
Then, I tried to correct it using the XIDE's experience, but now I get:
1>------ Build started: Project: UseVulcan, Configuration: Debug Any CPU ------
1>Program.prg(23,37): error XS0246: The type or namespace name '__VODATE' could not be found (are you missing a using directive or an assembly reference?)
1>Program.prg(23,26): error XS0103: The name 'Today' does not exist in the current context
1>Program.prg(27,29): error XS0246: The type or namespace name '__VODATE' could not be found (are you missing a using directive or an assembly reference?)
1>Program.prg(34,25): error XS0103: The name 'Today' does not exist in the current context
1>Program.prg(34,20): error XS0103: The name 'DTOS' does not exist in the current context
1>Program.prg(39,15): error XS0103: The name 'SubStr' does not exist in the current context
1>Program.prg(43,15): error XS0103: The name 'At' does not exist in the current context
1>Program.prg(47,57): error XS1955: Non-invocable member 'Empty' cannot be used like a method.
1>Program.prg(49,57): error XS1955: Non-invocable member 'Empty' cannot be used like a method.
1>Program.prg(53,15): error XS0103: The name 'Pow' does not exist in the current context
1>Program.prg(57,21): error XS0246: The type or namespace name '__Array' could not be found (are you missing a using directive or an assembly reference?)
1>Program.prg(58,15): error XS0103: The name 'ArrayNew' does not exist in the current context
1>Program.prg(59,10): error XS0103: The name 'AAdd' does not exist in the current context
1>Program.prg(60,10): error XS0103: The name 'AAdd' does not exist in the current context
1>Program.prg(61,10): error XS0103: The name 'AAdd' does not exist in the current context
1>Program.prg(62,64): error XS0103: The name 'ALen' does not exist in the current context
1> XSharp Compilation time: 00:00:03.1294744
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========