Search code examples
programming-languages

Different programming languages possibilities


This should be very simple question. There are many programming languages out there, compiled into machine code or managed code. I first started with ASM back in high school. Assembler is very nice, since you know what exactly CPU does. Next, (as you can see from my other questions here) I decided to learn C and C++. I chose C becouse from what I read it is the language with output most close to assembler-written programs.

But, what I want to know is, can any other Windows programming language out there call win32 API? To be exact, like C has its special header and functions for win32 api interactions, is this assumed to be some important part of programming language? Or are there any languages that have no support for calling win32 API, or just use console to IO and some functions for basic file IO? Becouse, for Windows programming with graphic output, it is essential to have acess to win32 API. I know this question might seem silly, but still please, help me, I ask for study porposes. Thanks.


Solution

  • Lots of different languages have a way of opening and using windows DLL files so you can just open the system DLLs which contain the API functions and use them.

    Some languages such as C help you out by providing a nice header file with everything already defined.

    The only other language i've ever seen that has direct access to the WinAPI without needing to open any library beforehand is a BASIC dialect called Purebasic.