This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Building DLL's


Stu Fullmer <sfullmer@wwg.com> writes:
> I'm trying to build a DLL that can pass back constant strings. The first
> thing I did was to create a small test
> DLL to see if I can get it to work. I feel like I'm really close, but I
> still can't quite get it. Here is the deal. My
> example DLL has functions that pass back pointers to char streams (which are
> constant). I then try to print
> this string in my test app using cout.
> When the string goes to print it's garbage. However, my other functions work
> fine. Any ideas. Thanks.

Please provide your small testcase so we can help. In the meantime, you
may want to get the dllhelpers package that has a few examples of building
DLLs for Cygwin. See
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/dllhelpers.html
for more info.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com