This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: How to make DLLs in cygwin for MSVC and BCB


----Original Message----
>From: Max Kaehn
>Sent: 23 June 2005 18:16


> You'll need to find some way to arrange that the 4K is available at
> the bottom of the stack of your main thread for as long as you have
> cygwin1.dll loaded.  

> ---
> extern "C" int mainCRTStartup ();
> 
> extern "C" int __stdcall
> cygwinFriendlyCRTStartup ()
> {
>   char buf[4096];
>   return mainCRTStartup ();
> }
> ---


  Sorry, but why isn't that 4k at the *TOP* of the stack?  It sure looks
that way to me, unless cygwin stacks grow upward!


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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