This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Win32 api and using in Cygwin


Dear Rob,

     I am not sure that I can see your problem.  If the code below is in the
file a.c or a.cpp, the command "gcc -o a a.c" or "gcc -o a a.cpp" compiles a.exe
for me without any errors messages.  Executing a.exe, of course, results in
nothing special happening.


   #include <windows.h>

   int   WINAPI WinMain(
         HINSTANCE   hInstance,
         HINSTANCE   hPrevInstance,
         LPSTR       pszCmdLine,
         int         nCmdShow
     )
   {
      WNDCLASS wndClass;

      wndClass.style = 0;
   }

Regards,

   Mark Schoenberg

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]