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/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,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