Compilation, linking and execution instructions for 'Hello.dsw'
-------------------------------------------------------------------

-------------------------------------------------------------------
Description:
Hello.dsw is a very basic V2_OS application written in Microsoft Visual C++. It prints a message to the screen with system32 Service 4, and then returns back to V2_OS.
-------------------------------------------------------------------


1). Open Hello.dsw with Microsoft Visual C++.

2). It's important to check the project settings (in the project/settings... menu).

*In the 'C/C++' tab, catagory 'general', you need to remove everything from the 'preprocessor definitions'
*In the 'Link' tab, catagory 'general', you need to remove everything from the 'Object/Library modules'
*In the 'Link' tab, catagory 'debug', you need to disable 'debug info'
*In the 'Link' tab, catagory 'output', you need to set 'base' to 0
*In the 'Link' tab, catagory 'output', you need to set 'entry point symbol' to 'main'

3). Now you can build 'hello.exe'
The linker will give a warning that it might not be a valid win32 executable. This is true because it's a valid V2_OS application ;)

4). Microsoft Visual C++ has now created a win32 executable, but it's not yet in the correct format for V2_OS. We can convert it by going to the directory where hello.exe is. Now type 'exe2app hello.exe hello.app'. This will convert the Exe to a valid V2_OS app !

5). Insert a V2_OS formatted floppy in drive A:
If you do not have a V2_OS formatted floppy, please refer to the Readme file in the SDK directory.

6). type 'v2copy hello.app hello.app'
This will copy your local hello.app file to a file on the V2_OS formatted floppy.

7). now reboot a pc with the floppy you've just made.
If the system is booted, you can execute your program by typing 'run hello.app'
It should print the 'hello world' message to the screen and then return to V2_OS.
If this is not the case, please report your problem on the Forum (www.v2.nl/v2_os) or contact the v2_lab.