delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <18613133.post@talk.nabble.com> |
Date: | Wed, 23 Jul 2008 08:17:00 -0700 (PDT) |
From: | Stefano Facchetti <s DOT facchetti AT kline DOT it> |
To: | cygwin AT cygwin DOT com |
Subject: | GetProcAddress Problem |
MIME-Version: | 1.0 |
X-Nabble-From: | s DOT facchetti AT kline DOT it |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |