* Call a Dll
@ 1999-11-23 5:20 José Raúl de Prado Mediavilla
1999-11-30 23:39 ` José Raúl de Prado Mediavilla
0 siblings, 1 reply; 2+ messages in thread
From: José Raúl de Prado Mediavilla @ 1999-11-23 5:20 UTC (permalink / raw)
To: cygwin
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@ribera.tel.uva.es **
** jprado@gsi.dit.upm.es **
** URL: http://www.tel.uva.es/~jpramed **
**************************************************************
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Call a Dll
1999-11-23 5:20 Call a Dll José Raúl de Prado Mediavilla
@ 1999-11-30 23:39 ` José Raúl de Prado Mediavilla
0 siblings, 0 replies; 2+ messages in thread
From: José Raúl de Prado Mediavilla @ 1999-11-30 23:39 UTC (permalink / raw)
To: cygwin
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@ribera.tel.uva.es **
** jprado@gsi.dit.upm.es **
** URL: http://www.tel.uva.es/~jpramed **
**************************************************************
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-30 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-23 5:20 Call a Dll José Raúl de Prado Mediavilla
1999-11-30 23:39 ` José Raúl de Prado Mediavilla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).