GetProcAddress Problem

Stefano Facchetti s.facchetti@kline.it
Wed Jul 23 15:17:00 GMT 2008


How specify in FAQ 6.16 I try to compile this code:

...
 HMODULE h = LoadLibrary("cygwin1.dll");
 void (*init)() = GetProcAddress(h, "cygwin_dll_init");
 init();
...

The compiler give my the following error:

festivalDll.cc: In function `void festival_init()':
festivalDll.cc:18: error: invalid conversion from `int (*)()' to `void
(*)()'

How can I do..? 

Thanks,
Fad.
-- 
View this message in context: http://www.nabble.com/GetProcAddress-Problem-tp18613133p18613133.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list