delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/21/14:09:45

From: Valeri DOT Faine AT cern DOT ch ("Valery Fine")
Subject: Re: Another problem with DLL's
21 Mar 1997 14:09:45 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199703210841.JAA24462.cygnus.gnu-win32@sp050.cern.ch>
Comments: Authenticated sender is <fine AT vxcern DOT cern DOT ch>
Original-To: John Cerney <j-cerney1 AT ti DOT com>
Original-CC: gnu-win32 AT cygnus DOT com
X-Confirm-Reading-To: "Valery Fine" <fine AT vxcern DOT cern DOT ch>
X-pmrqc: 1
X-mailer: Pegasus Mail for Windows (v2.23)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

On 20 Mar 97 at 13:17, John Cerney wrote:

> 
> >I've got a problem with DLL's...
> >
> >Folowing the instruccions of the home page of Cygnus, everything
> >works OK when I link the DLL with my executable but... if you try
> >to load the library indirectly via LoadLibrary(), it returns an
> >HRESULT of 0
> >
> >Someone knows how to solve this or is just a bug?
> 
> I'm not sure what is wrong with your code, but I know this does
> work. Here is a simple example of loading a DLL at runtime using
> LoadLibraryEx calls. This compiles and links fine on both win95 and
> winNT.

   Hello John!

   Just one question. Did you try to compile your MAIN with VC++ but 
DLL with gnu-win32 ? Does it work ?
=================================================================
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for NuclearRes   Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine AT main1 DOT jinr DOT dubna DOT su
                                 mailto:fine AT vxcern DOT cern DOT ch
Dr. Valeri Faine
    ------------                 Phone: +41 22 767 6468
CERN                             FAX  : +41 22 782 2601
CH-1211 Geneva, 23               mailto:fine AT vxcern DOT cern DOT ch 
Switzerland                      http://nicewww.cern.ch/~fine
                                 
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019