Computing.Net > Forums > Programming > Windows programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Windows programming

Reply to Message Icon

Name: wille
Date: May 10, 2009 at 15:43:47 Pacific
OS: Microsoft Windows Vista Home Premium
CPU/Ram: 2 GHz DualCore/ 2041 MB
Product: Lenovo / 42334dg
Subcategory: General
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: May 10, 2009 at 16:55:33 Pacific
Reply:

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


0

Response Number 2
Name: wille
Date: May 11, 2009 at 01:35:46 Pacific
Reply:

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


0

Response Number 3
Name: StuartS
Date: May 11, 2009 at 01:53:47 Pacific
Reply:

>> 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


0

Response Number 4
Name: wille
Date: May 11, 2009 at 03:49:21 Pacific
Reply:

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


0

Response Number 5
Name: StuartS
Date: May 11, 2009 at 04:41:58 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: wille
Date: May 11, 2009 at 06:00:01 Pacific
Reply:

Okay, thanks for all your help.

Live the life as you know it
/ Wille


0

Sponsored Link
Ads by Google
Reply to Message Icon

extracting a part of stri... Enhanced Type command



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Windows programming

windows programming www.computing.net/answers/programming/windows-programming/10377.html

Windows Programming www.computing.net/answers/programming/windows-programming/11937.html

windows programming with Visual C++ www.computing.net/answers/programming/windows-programming-with-visual-c/5849.html