www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/04/13:06:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Gilad Bed Dor" <gilad DOT ben-dor AT alcatel DOT co DOT il>
To: "cygwin contact" <cygwin AT sourceware DOT cygnus DOT com>
Subject: CYGWIN and VC++ don't work together
Date: Tue, 4 Apr 2000 19:04:05 +0200
Message-ID: <NDBBLBLDPNFCCAFPFAPEMEBCCAAA.gilad.ben-dor@alcatel.co.il>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

Hello.

I wrote a Dll in CYGWIN.
I than tried to do LoadLibrary, from a VC++ project.
  the LoadLibrary failed with GetLastError=998.


I tried to switch places : Wrote a Dll in VC++,
  But than the CYGWIN's LoadLibrary failed.


Wow can I use CYGWIN's Dlls, from VC++ ?



e.g:
the file :

#include "windows.h"
BOOL WINAPI TestStart( HANDLE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved )
{
    return TRUE;
}

void __stdcall Test( int *Ptr )
{
	*Ptr = 123456;
}


I compiled with "gcc -c"  (not c++), than linked according to the
documentation :

     $(LD) -s --base-file BASEFILE --dll -o DLLNAME OBJS LIBS -e ENTRY

     $(DLLTOOL) --as=$(AS) --dllname DLLNAME --def DEFFILE \
             --base-file BASEFILE --output-exp EXPFILE

     $(LD) -s --base-file BASEFILE EXPFILE -dll -o DLLNAME OBJS LIBS -e
ENTRY

     $(DLLTOOL) --as=$(AS) --dllname DLLNAME --def DEFFILE \
     	--base-file BASEFILE --output-exp EXPFILE

     $(LD) EXPFILE --dll -o DLLNAME OBJS LIBS -e ENTRY


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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