First tests with the XS Runtime
Posted: Fri Jun 15, 2018 3:02 pm
Hi,
I have made some first tests. But I get some compiler error messages which I do not understand
I have removed the vulcanrt references and I have added the following references manually in the XSPROJ file
<Reference Include="XSharp.Core">
<Name>XSharp.Core</Name>
<AssemblyName>XSharp.Core.DLL</AssemblyName>
</Reference>
<Reference Include="XSharp.VO.dll">
<Name>XSharp.VO.dll</Name>
<AssemblyName>XSharp.VO.dll.DLL</AssemblyName>
</Reference>
Test with arrays
FUNCTION test1() as void
LOCAL n := 5 AS DWORD
local a as array
a := arraynew(n)
I get the error XS1503 Argument 1: cannot convert from 'dword' to 'int'
Test compiling the VOConsole library with references to the new two assemblies
METHOD Write( sMsg )
LOCAL lRet := false AS LOGIC //X# AO 11/2016
LOCAL n AS DWORD
IF ( hConOut != F_ERROR )
n := SLen( sMsg )
lRet := ( FWrite( SELF:hConOut, sMsg, n ) == n )
ENDIF
I get the following error XS0121 The call is ambiguous between the following methods or properties: 'XSharp.Core.Functions.FWrite(System.IntPtr, string, dword)' and 'XSharp.VO.Functions.FWrite(params XSharp.__Usual[])' BaseConsole C:datenvulcanSolutionsBaselibxsrtSlnBaseConsoleConsole.prg 242
Arne
I have made some first tests. But I get some compiler error messages which I do not understand
I have removed the vulcanrt references and I have added the following references manually in the XSPROJ file
<Reference Include="XSharp.Core">
<Name>XSharp.Core</Name>
<AssemblyName>XSharp.Core.DLL</AssemblyName>
</Reference>
<Reference Include="XSharp.VO.dll">
<Name>XSharp.VO.dll</Name>
<AssemblyName>XSharp.VO.dll.DLL</AssemblyName>
</Reference>
Test with arrays
FUNCTION test1() as void
LOCAL n := 5 AS DWORD
local a as array
a := arraynew(n)
I get the error XS1503 Argument 1: cannot convert from 'dword' to 'int'
Test compiling the VOConsole library with references to the new two assemblies
METHOD Write( sMsg )
LOCAL lRet := false AS LOGIC //X# AO 11/2016
LOCAL n AS DWORD
IF ( hConOut != F_ERROR )
n := SLen( sMsg )
lRet := ( FWrite( SELF:hConOut, sMsg, n ) == n )
ENDIF
I get the following error XS0121 The call is ambiguous between the following methods or properties: 'XSharp.Core.Functions.FWrite(System.IntPtr, string, dword)' and 'XSharp.VO.Functions.FWrite(params XSharp.__Usual[])' BaseConsole C:datenvulcanSolutionsBaselibxsrtSlnBaseConsoleConsole.prg 242
Arne