Visual Studio .NET

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Visual Studio .NET

Post by df »

I spent some time looking at VS.NET for osdev last night...

it doesnt look good, unless i totally missed some options.

vs6 was pretty good in the sense it let you specify libraries, have no default libs, etc, sure it output in PE, but you could turn everything off and it could produce plain non windows code...

vs.net does not seem to let you do this. there doesnt seem to be the option to disable libs (i had nodefaultlibs on, but it kept trying to link against kernel32.lib, gdi.lib and loads of others).

bit of a shame....

has anyone else spent any time looking at vs.net for doing osdev?
-- Stu --
pskyboy

Re:Visual Studio .NET

Post by pskyboy »

How exactly do you get VC++ 6 output to turn into flat binaries.

Also the vact VS .Net doesn't allow you to do it isn't suprising at all as it is very similar to java in that it needs lots of extra bits to function. These include grbage collection threads and many other things.

Peter
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Visual Studio .NET

Post by df »

well i'm not talking about the language with garbage collection, i'm talking about the IDE system.

vs6 doesnt let you output flat binaries, it still outputs PE files, BUT you can tell it not to use any windows libraries, etc, set te base address, so you can write non windows dependant code, its caveat is its output file format is PE.

vs.net does not let you have this much control on what code you write. It seems you cant write non windows dependant code in the vs.net IDE. (unless I'm missing things).
-- Stu --
Tim

Re:Visual Studio .NET

Post by Tim »

Considering the compiler and linker in VS.NET are just upgrades of the ones in VC++ 6, you should be able to specify the same options in VS.NET. Maybe you need to enter the options by hand instead of going through the Project Settings dialog. Are you sure you're not emitting Managed C++ code?
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Visual Studio .NET

Post by df »

yeah the project was setup as a console app, the linkers commandline brings back this list of libs

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

ahaaah! i turned a few more options off, and its got it back to no libs. hmm. ok. now i dont know which of the options it was.

i'll have to double check, so I can comeup with a basic list so others can follow it.
-- Stu --
engine252

Re:Visual Studio .NET

Post by engine252 »

i don't think you can write an os in vs.net since it uses some kind of virtual machine so in the end you'll need that virtual machine that only runs on windows to run your os.

Some team is working on a simmular virtual machine for linux
so you'll be able to run apps made with .net on linux.
but wheres the fun on writing an os that run on an other os. ;D
jrfritz

Re:Visual Studio .NET

Post by jrfritz »

engine252...he saied IDE...

a nice editor for linux is "kwrite" it has syntax highlighing....
Whatever5k

Re:Visual Studio .NET

Post by Whatever5k »

a nice editor for linux is "kwrite"
I don't like KDE at all...the best editor is still vi/vim.
jrfritz

Re:Visual Studio .NET

Post by jrfritz »

I also use "nedit".

I like KDE some..but it's so slow...I like ICEwm the best.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Visual Studio .NET

Post by df »

on freebsd i use 'le' which is really cool.
-- Stu --
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Visual Studio .NET

Post by Pype.Clicker »

Fun to see that people still use VI :P
I do use the power of ><emacs :)
DarylD

Re:Visual Studio .NET

Post by DarylD »

Well, I develop under Windows 2000/XP and use context as my editor. I know its not an ide but its really lightweight and easy to use. I use cygwin as my development environment and VMWare as my emulation environment.

This could almost do with being in a separate thread.
Post Reply