×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How do I make C++/Java Programs use the Windows API?

How do I make C++/Java Programs use the Windows API?

How do I make C++/Java Programs use the Windows API?

(OP)
I want to design an app that uses the Windows API. However, I am not sure how to make an application that uses the Windows API. The "API" part seems to suggest that I don't have to use Visual Studio, but that sounds too uncomplicated for Microsoft.

Would downloading Eclipse and then downloading the newest Windows API docs be sufficient? I know how to program, but I'm not sure what apps I need.

RE: How do I make C++/Java Programs use the Windows API?

the windows API is nothing more than a set of operating system functions. While you can use the API from any programming language (that supports it) you like. But you still need a compiler/linker to  make the application. Eclipse is nothing more than an editor for the code.
Anyway, C is the most natural language for using the API (windows codebase is also written in C).
There are some free C/C++ compilers out there (http://www.thefreecountry.com/compilers/cpp.shtml).

Cheers,
/Daddy

-----------------------------------------------------
 What You See Is What You Get
Never underestimate tha powah of tha google!

RE: How do I make C++/Java Programs use the Windows API?

You'd better focus on the requirements of your app, than on some bogus requirement of 'using the Windows API'. The windows api is used by any tool deployed on Windows, either directly, or by using some framework and its available functionality, being that Java, C# or any language and whatever runtime (jre, .NET CLR) it needs.

You could write yoru code in any editor that can save as plain ascii text files, but you would need a compiler to turn the code into CPU-understandable bytes. That can be C or C++, as Daddy suggested, or any language you know or like best, you just need a fitting compiler or interpreter.

HTH
TonHu

RE: How do I make C++/Java Programs use the Windows API?

  Thge whole point of using Java in the first place is to be OS independent. Java uses an intermediate API that acts as a go-between for the application you develop and the particular operating system it is running on, thereby allowing the same code to run on Windows, UNIX/LINUX or Apple OSx.  By using a Windows system call, you break that ability.  Not a good idea, IMHO, and not even sure it is possible. (I don't program in JAVA, in case you are wondering)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close