Page 1 of 1

How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 6:50 pm
by RetiQlum
There is probably something I am missing but I cannot find a how-to on what steps I need to compile to make this run natively. It's not even a complex program.

Re: How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 7:07 pm
by Heater
As far as I know you do not.

VB is a Windows thing.

Re: How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 7:42 pm
by bensimmo
Are you using WindowIOT , if so I would have a look around their website, I cannot remember if it's just C#, C++ or all the usual Visual Studio ones that work.
Long time since I looked at it.


Other than that I think you need to get Mono working if using Raspbian or similar Linux based setup ? (not sure)

Re: How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 7:45 pm
by ghans
Visual Basic 6 does not run on Linux. Visual Basic .NET does run on Linux.

ghans

Re: How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 7:46 pm
by PiGraham
I'm not sure of the details but Mono on Linux allows you to run dotnet CLR programs but visual basic support may be lacking on Raspbian

http://www.mono-project.com/docs/about- ... sualbasic/

https://stackoverflow.com/questions/477 ... spberry-pi

Re: How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 7:59 pm
by n67
First of all, I'm not sure "Other Languages" is the right sub-forum for this. I think "Other Languages" is for other human languages, not programming languages.

Second, I'm going to assume you're running Raspbian. If not, adjust accordingly.

That said, the best first step is to do:

$ apt-cache search mono | grep "^mono" | less

And see what is available. I see something there called "mono-complete", which is probably the best thing to install. There is also something called "mono-vbnc", which implies that VB.NET is supported, so that's good.

After having installed something like that, I'd then go to my Windows machine and write a very simple "hello, world" type program in VB.NET, compile it to an EXE and then bring that EXE over to the Pi. On the Pi, you should be able to run it via something like (I'm guessing here, but I'm pretty sure this is how you do it):

$ mono hello.exe

And it should work.

Once that I had all that working, I'd be up and running...

Re: How do I compile a Visual Basic program for the Pi?

Posted: Thu Apr 19, 2018 10:23 pm
by plugwash
n67 wrote:
Thu Apr 19, 2018 7:59 pm
First of all, I'm not sure "Other Languages" is the right sub-forum for this. I think "Other Languages" is for other human languages, not programming languages.
Confusingly this forum has two sub-forums called "Other Languages". My understanding is that "community->other languages" is for human languages and "programming->other languages" is for programming languages.

Re: How do I compile a Visual Basic program for the Pi?

Posted: Fri Apr 20, 2018 12:29 am
by n67
plugwash wrote:
Thu Apr 19, 2018 10:23 pm
n67 wrote:
Thu Apr 19, 2018 7:59 pm
First of all, I'm not sure "Other Languages" is the right sub-forum for this. I think "Other Languages" is for other human languages, not programming languages.
Confusingly this forum has two sub-forums called "Other Languages". My understanding is that "community->other languages" is for human languages and "programming->other languages" is for programming languages.
OK, thanks. I actually did not know that. I only knew of the "Community" one.