Vb os

October 8, 2011 at 19:20:07
Specs: Windows XP
Hello-
I was wondering about a way to make an operating system in visual basic, and I looked up
on youtube for some examples, but they were all used with "COSMOS", which I think is just shell script. Is there a way to make a "real" OS in visual basic? I was trying to learn assembly code, but it is very complex, and I think it is a bit more limited, like I cant make a web browser, or a more graphic layout.
Any ideas?
Thanks,
Drex

See More: Vb os

Report •


#1
October 9, 2011 at 06:12:03
You never specify which version of VB you're asking about, so I'll give you a rundown of the common ones:

VB6 (outdated & depreciated, but some people refuse to let go) - Dependent on the resources Windows provides, including .DLL support (and message pump support if you're making a GUI application). No low level access to memory without importing various Win32 API functions.

VB.NET - Dependent on a working CLR environment. All current CLRs are dependent on functionality provided by their OS. Pretty sure there's no low level memory access. (You wouldn't want it anyways, with the garbage collector and all.)

VBA - Requires an interpreter Typically, this interpreter is found in MS Office, which is dependent on the functionality provided by the OS.

VBScript - Requires a script engine. Known script engines are Internet Explorer, WScript, and CScript. All of them are dependent on the OS. No real concept of memory, pointers, or addresses.

How To Ask Questions The Smart Way


Report •

#2
October 9, 2011 at 12:23:06
I'm afraid that Visual Basic isn't really suitable to write an Operating System. It depends too highly on Windows, and does not provide access to the instructions that you would need to control the hardware. If you want to write a true Operating System you are going to have to study the assembly language of the processor it is to run on as well as understanding the low-level details of controlling hard disks, graphics cards, and other hardware.

It's a fascinating undertaking, but not something for the faint hearted. The best language to use is probably C, but you will need some assembler also.


Report •

#3
October 13, 2011 at 14:40:40
Thanks for the answers, I have one more question, though. I have heared you can use JAVA as well for an OS. Is it easier in assembly or java, and which would make a more "graphic" layout, so it looks good, like something made in VB.
Thanks,
Drex96

Report •

Related Solutions

#4
October 13, 2011 at 14:55:58
Some ARM processors can run JVM in hardware, but I don't think Java gives you the low level of control required. Really, C or C++ would probably be the highest level language you could reasonably go with.

Assembly is the lowest level you could possibly go, so expect an easier time dealing with the hardware than your abstraction.

How To Ask Questions The Smart Way


Report •

Ask Question