Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Name: wille
Hi, I can't find this anywhere on the net but I'm sure it's got to exist. I'm looking for a programming language in windows that doesn't use the windows API. I've looked everywhere and even assembly language uses the API! Maybe someone knows something?
Live the life as you know it
/ Wille

Any will do. You dont have to use the API, it is just one of many options open to you. Anything that can be done with the API can also be done without. The API just makes it easier by avoiding reinventing the wheel and makes the application specific to Windows.
If you wanted to write programme in C++ that you wanted to compile it to run on other platforms such as Linux you would stick to ANSI code and specifically avoid the API. If you are writing a programme that will only ever be used on Windows it makes no sense to avoid the API.
Stuart

Okay so .exe files can run in linux? or does it have to have some other extension? Windows executables begins with initials MZ but is this the only difference? I can't seem to find out this stuff by only using google. Does linux even have some file to represent the windows .exe?
Thanks for your help.Live the life as you know it
/ Wille

>> Okay so .exe files can run in linux? <<
No, you compile the same source code on a Linux machine to get a Linux executable, on a Mac machine to get a Mac executable.
The same applies to Windows. If you want an application to run on both Windows XP and Windows Vista you would may need to generate two different executable files for each platform..
Stuart

Okay I got it. I've been serching around for assembly tutorials and realized that what I want is not assembly, it's machine code. Do you know any good tutorial, because I can't find any.
Thanks again for help.Live the life as you know it
/ Wille

You dont want to start programming in machine code, believe me you dont. Thats what they used to do in the 1940s/ 50s when there was no alternative. It is all numbers and nothing else.
Assembly language is the nearest you will get to programming in machine code. There are plenty of assembly tutorials around, you just need one for the CPU you are programming for which on a Windows/Linux platform will be Intel. You wont find any tutorial on programming in machine code because nobody does it. Its far to laborious and even the simplest of programmes could take weeks to generate.
Ultimatley all programmes end up in machine code. Thats what the compiler does; turns the source code, written by you that you can understand into machine code that the computer can understand.
Stuart

![]() |
extracting a part of stri...
|
Enhanced Type command
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |