Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <000901be50f1$cffb83e0$11247aa3@sdf5_l1117.tatainfotech.co.in> From: "S. Krishnaprasad" To: "Mumit Khan" Cc: "cygwin" Subject: Help with Windows DLL Date: Fri, 5 Feb 1999 15:55:09 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0006_01BE511F.E824E280" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 ------=_NextPart_000_0006_01BE511F.E824E280 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks to Mumit I could finally create and use a DLL created in cygwin in a MSVC 6 console application. I used $ dllwrap --entry __cygwin_noncygwin_dll_entry AT 12 -o foo.dll --def = foo.def --add-stdcall-alias [object files] [libraries needed] After that I created the .LIB file using LIB.EXE of MSVC and I could = link to the DLL using both LoadLibrary method and directly using a call to the function = also. But when I try to use it in a Windows application it dosent work. It = also does not give=20 any errors. When I try to debug it it gives me error in NTDLL.DLL = module. Is there any option when creating the DLL as a Windows DLL=20 like --mswindows or something. I seem to have seen it being used = somewhere . Anybody Help Thanks in advance=20 S.Krishnaprasad krishnaprasad AT poboxes DOT com ------=_NextPart_000_0006_01BE511F.E824E280 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks to Mumit I could finally create and use a DLL = created=20 in cygwin
in a MSVC 6 console application.
I used
$ dllwrap --entry __cygwin_noncygwin_dll_entry AT 12 -o = foo.dll=20 --def foo.def --add-stdcall-alias [object files] [libraries = needed]
 
After that I created the .LIB file using LIB.EXE of = MSVC and I=20 could link to the DLL
using both LoadLibrary method and directly using a = call to the=20 function also.
 
But when I try to use it in a Windows application it = dosent=20 work. It also does not give
any errors. When I try to debug it it gives me error = in=20 NTDLL.DLL module.
 
Is there any option when creating the DLL  as a = Windows=20 DLL
like --mswindows or something. I seem to have seen = it being=20 used somewhere .
 
Anybody Help
 
 
Thanks in advance
 
S.Krishnaprasad
krishnaprasad AT poboxes DOT com
 
 
 
------=_NextPart_000_0006_01BE511F.E824E280 Content-Type: text/plain; charset= -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_0006_01BE511F.E824E280--