Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Complicated question

Complicated question

Scheduled Pinned Locked Moved C#
helpcsharpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DeathJester_
    wrote on last edited by
    #1

    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 :)

    G R D 3 Replies Last reply
    0
    • D DeathJester_

      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 :)

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      What dialect of BASIC is it? There are a lot of them, and the code provider in the framework only handles Microsoft Visual Basic .NET. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • D DeathJester_

        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 :)

        R Offline
        R Offline
        Robert Rohde
        wrote on last edited by
        #3

        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...

        1 Reply Last reply
        0
        • D DeathJester_

          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 :)

          D Offline
          D Offline
          DeathJester_
          wrote on last edited by
          #4

          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?

          K 1 Reply Last reply
          0
          • D DeathJester_

            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?

            K Offline
            K Offline
            Kuira
            wrote on last edited by
            #5

            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..

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups