Complicated question
-
hello! i have a file,written in basic and i need to run it programmaticaly from a C# program, so that i could call methods, get answeres from them, etc. i wrote a program using CodeDomProvider, which compiles program and it`s possible tj work with methods through Assembly BUT!!!! it works only on *.vb and doent want to work with *.bas, even if i remane to yo *.vb it doesnt compile, sends error messages. Suppose, there`s another file format or something... i strongly need to compile it!!!!! help please :)
-
hello! i have a file,written in basic and i need to run it programmaticaly from a C# program, so that i could call methods, get answeres from them, etc. i wrote a program using CodeDomProvider, which compiles program and it`s possible tj work with methods through Assembly BUT!!!! it works only on *.vb and doent want to work with *.bas, even if i remane to yo *.vb it doesnt compile, sends error messages. Suppose, there`s another file format or something... i strongly need to compile it!!!!! help please :)
-
hello! i have a file,written in basic and i need to run it programmaticaly from a C# program, so that i could call methods, get answeres from them, etc. i wrote a program using CodeDomProvider, which compiles program and it`s possible tj work with methods through Assembly BUT!!!! it works only on *.vb and doent want to work with *.bas, even if i remane to yo *.vb it doesnt compile, sends error messages. Suppose, there`s another file format or something... i strongly need to compile it!!!!! help please :)
You do not really think there is some kind of 'magic' built into the framework which enables it to compile every sort of programming language do you? As said there are hundreds if not thousands of basic dialects...
-
hello! i have a file,written in basic and i need to run it programmaticaly from a C# program, so that i could call methods, get answeres from them, etc. i wrote a program using CodeDomProvider, which compiles program and it`s possible tj work with methods through Assembly BUT!!!! it works only on *.vb and doent want to work with *.bas, even if i remane to yo *.vb it doesnt compile, sends error messages. Suppose, there`s another file format or something... i strongly need to compile it!!!!! help please :)
I suppose thats a kind of vb script - there`re no variable declarations no namespace, just sub after sub... is there any chance to execute a sub from that file by C# program?
-
I suppose thats a kind of vb script - there`re no variable declarations no namespace, just sub after sub... is there any chance to execute a sub from that file by C# program?
I dont think it would work, there could be some Modules that would do this or some COM objects and all, but that could mean data marshalling and other types of issues... IMO if you can make a vb script as an exe that calls those subs for you and use C# to externall call them as a shell that might work out for you. Depends on how "secure" you want this to be.... I'm sure that either way they are not going to be "secure" as you might think..