Thread View: comp.os.ms-windows.programmer.misc
1 messages
1 total messages
Started by Mark Madrilejo
Tue, 21 Nov 1995 21:59
[Q] Friend functions in a Borland 4.0 DLL?
Author: Mark Madrilejo
Date: Tue, 21 Nov 1995 21:59
Date: Tue, 21 Nov 1995 21:59
30 lines
1395 bytes
1395 bytes
I'm trying to make a String class DLL with Borland C++ 4.0. I couldn't
link in the operator + function (undefined symbol). I ran TDUMP on the
lib file and, sure enough, operator + isn't listed (although it compiles
fine) ... neither are any other friend functions ...
From the String class declaration in the header file ...
class _CLASSTYPE String
{
... <other functions> ...
friend const String operator + (const String &s1, const String &s2);
}
From the code ...
const String operator + (const String far &s1, const String far &s2)
{
... <some code> ...
}
Is there anything I can do, besides write a gazillion operator + functions
to handle different types?
Please e-mail me ... I don't know if I'll be able to check this group
before Thanksgiving (here in the good ol USA)
Thanks a bunch,
Mark Madrilejo
mark_madrilejo@mail.amsinc.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads