www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/23/08:21:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
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
Date: Tue, 23 Nov 1999 14:18:55 +0100 (MET)
From: =?ISO-8859-1?Q?Jos=E9_Ra=FAl_de_Prado_Mediavilla?= <jpramed AT ribera DOT tel DOT uva DOT es>
X-Sender: jpramed AT ribera
Reply-To: =?ISO-8859-1?Q?Jos=E9_Ra=FAl_de_Prado_Mediavilla?= <jpramed AT ribera DOT tel DOT uva DOT es>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Call a Dll
Message-ID: <Pine.GSO.3.96.991123133841.27405B-100000@ribera>
MIME-Version: 1.0

Hello!
	I am working with DLL and I have problems with it.

	I have a dll (i.e.: mydll.dll) and I want to use this dll in a
program.
	I call it like:
	
	{
		HANDLE h;
		h=LoadLibrary("mydll.dll");
		....(I call functions in dll)
		FreeLibrary(h);
	}

	If this is wrong, please tell me the right way.

	I build the executable like this (I do not know if this is the 
right way):

	gcc -o myprog myprog.o mydll.dll

	But when I run, it emits an error message like: The instruction
0x0000040a4 has referenced to the memory in 0x0000040a4. It can not read
the memory" (more or less)

	If someone can give me some ideas about how can I solve it, and in
general, how can I call a DLL from a program, please mail me.

Tanks you.

**************************************************************
**             JOSE RAUL DE PRADO MEDIAVILLA                **
** -------------------------------------------------------- **
** Escuela Tecnica Superior Ingenieros de Telecomunicacion. **
** Grupo de Sistemas Inteligentes-Universidad de Valladolid **
**                    VALLADOLID (SPAIN)                    **
** Tlf:	 	    983 423000 ext. 25586		    **
** E-mail:          jpramed AT ribera DOT tel DOT uva DOT es               **
**	              jprado AT gsi DOT dit DOT upm DOT es                 **
** URL:             http://www.tel.uva.es/~jpramed          **
**************************************************************



--
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