I’m looking to use the Win32 API in a project I’m working on. However I have no idea how to call the Win32 API from my cygwin project. Can someone point me in the correct direction?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Win32 API can be accessed from a cygwin program by including the “windows.h” header file. It implies that you have the win32 packages installed, of course. Here is an example program:
This can be compiled and linked with “make filename” where filename.cpp contains the above source. Then execute by typing ./filename xxxx at the bash prompt. Then xxxx will appear in a message box window.