[Patch] Loading cygwin1.dll from MinGW and MSVC

Igor Pechtchanski pechtcha@cs.nyu.edu
Mon Jun 6 21:12:00 GMT 2005


On Mon, 6 Jun 2005, Christopher Faylor wrote:

> On Mon, Jun 06, 2005 at 04:42:30PM -0400, Christopher Faylor wrote:
> >On Mon, Jun 06, 2005 at 04:09:13PM -0400, Igor Pechtchanski wrote:
> >I guess you could do it that way.  It would look more transparent to the
> >end user if you did.  You'd still have to make it clear that this has to
> >happen first thing in the main() function or you could suffer problems
> >with automatic initialization or constructors.
>
> Actually, if you do it that way, there's no reason to pass in main()
> since the DLL already knows how to find it.

True, provided you're not doing this from a console application which uses
WinMain (but then the arguments will all be different as well).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT



More information about the Cygwin-patches mailing list