Spurred on by recent successes, i wanted to move another app from VN to X#, but I think there's some misunderstanding from my side.
Made a new project in Xide, imported a library (viaef), which references some other libs. Instead of importing viaefs for these, too (in other projects), i used "browse" and added the dlls. On compile, i get some errors like
error VN4004: unknown function or method: 'WriteLog' 221,3 SCF_Modul_ELS.prg SCF_Modul_ELS:FillFromIni
If i point onto WriteLog in the code, i can "goto definition from metadata", but nothing happens.
The referecend dlls are "x#", the calling dll is (still) VN, but that shouldn't pose this problem??
I expect to workaround by fetching the source and bind the libs in this project, but i'd like to understand, why the above fails.
References
References
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
References
Hi Karl,
"error VNxxxx" means that you are compiling this particular app with vulcan, not with X#
"error VNxxxx" means that you are compiling this particular app with vulcan, not with X#
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
References
Indeed - and switching to X#/VN fixed this error.Chris wrote: "error VNxxxx" means that you are compiling this particular app with vulcan, not with X#
But i have VN still installed, and thought mixing different dll-languages is possible?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
References
Karl,
Most probably it's because vulcan does not "know" how X# emits functions and globals. If you used fully qualified names for them (like MyLibrary.Functions.WriteLog()), then it should work.
Most probably it's because vulcan does not "know" how X# emits functions and globals. If you used fully qualified names for them (like MyLibrary.Functions.WriteLog()), then it should work.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
References
Chris,
now it get's a bit strange. Just started my machine, read your notice, started Xide, changed my dll back to "VN", compile - and all these errors are gone, apart from "error VN4011: 'FileSpec' : unknown type (are you missing an assembly reference?) 15,21 S4File.prg S4File:S4File". Had a look, and changed to Vo.Filespec - compile, and now the errors of yesterday are back
But you hit the nail on his head, as usually, qualifiying the names did help.
Curiosity satisfied, now switched back to X#/VN language, removed the additions and went on.
now it get's a bit strange. Just started my machine, read your notice, started Xide, changed my dll back to "VN", compile - and all these errors are gone, apart from "error VN4011: 'FileSpec' : unknown type (are you missing an assembly reference?) 15,21 S4File.prg S4File:S4File". Had a look, and changed to Vo.Filespec - compile, and now the errors of yesterday are back
But you hit the nail on his head, as usually, qualifiying the names did help.
Curiosity satisfied, now switched back to X#/VN language, removed the additions and went on.
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
References
Hi Karl,
Most likely the vulcan compiler stopped reporting errors when it reached the unknown FileSpec class. When you adjusted this, it then went on trying to compile and found and reported the next issues it found.
Most likely the vulcan compiler stopped reporting errors when it reached the unknown FileSpec class. When you adjusted this, it then went on trying to compile and found and reported the next issues it found.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu