www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <18618719.post@talk.nabble.com> |
Date: | Wed, 23 Jul 2008 12:58:19 -0700 (PDT) |
From: | Stefano Facchetti <s DOT facchetti AT kline DOT it> |
To: | cygwin AT cygwin DOT com |
Subject: | RE: Cygwin dll from C# Application |
In-Reply-To: | <003a01c8ecf0$5a00fee0$9601a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Nabble-From: | s DOT facchetti AT kline DOT it |
References: | <18616035 DOT post AT talk DOT nabble DOT com> <48877048 DOT B7BFB5F AT dessent DOT net> <18616996 DOT post AT talk DOT nabble DOT com> <003a01c8ecf0$5a00fee0$9601a8c0 AT CAM DOT ARTIMI DOT COM> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
I'm new on C++ programming.. Can you write an example of 4K scratch space at the bottom of stack on my simple code: #include <stdio.h> #include <windows.h> #define DllExport extern "C" __declspec(dllexport) DllExport int Somma(int a,int b); int Somma(int a, int b) { HMODULE h = LoadLibrary("cygwin1.dll"); void (*init)() = (void(*)()) GetProcAddress(h,"cygwin_dll_init"); init(); return a+b; } Thanks, Fad. Dave Korn wrote: > > The path refers to a location in the sourceware.org CVS repository. You > could check out the winsup module using CVS, you could use setup.exe to > install the source for your current version of the Cygwin dll and look for > it there, or you can just browse it through the sourceware.org cvsweb > interface, at: > > http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/how-cygtls-works.txt? > cvsroot=src > > Click the 'download' link on that page to get a copy of the latest > revision. > > cheers, > DaveK > -- View this message in context: http://www.nabble.com/Cygwin-dll-from-C--Application-tp18616035p18618719.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 |