Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblem in dns query Pin
Ankit Aneja27-Jan-05 19:08
Ankit Aneja27-Jan-05 19:08 
Questionhow to make word so that it doesnt create .tmp Pin
Jetli Jerry27-Jan-05 18:11
Jetli Jerry27-Jan-05 18:11 
AnswerRe: how to make word so that it doesnt create .tmp Pin
shaveyourhead27-Jan-05 18:27
shaveyourhead27-Jan-05 18:27 
GeneralRe: how to make word so that it doesnt create .tmp Pin
Jetli Jerry27-Jan-05 20:07
Jetli Jerry27-Jan-05 20:07 
AnswerRe: how to make word so that it doesnt create .tmp Pin
David Crow28-Jan-05 2:58
David Crow28-Jan-05 2:58 
GeneralMulti-user server Pin
Timothy Grabrian27-Jan-05 17:26
professionalTimothy Grabrian27-Jan-05 17:26 
GeneralRe: Multi-user server Pin
trelliot28-Jan-05 2:57
trelliot28-Jan-05 2:57 
Generalexporting global operator+ function from DLL Pin
Jim Crafton27-Jan-05 17:04
Jim Crafton27-Jan-05 17:04 
if I want to export a global operator+ overload, like


String operator+( const String& lhs, const int& rhs );

If I define this in a header, like

__declspec( dllexport ) String operator+( const String& lhs, const int& rhs );



and then implement this in a .cpp like

__declspec( dllexport ) String operator+( const String& lhs, const int& rhs )
{
  return ....//rest of code omitted
}


it compiles and builds the DLL fine. When I link to the dll from an exe, however, I get linker errors claiming "String operator+(..." isn't defined.
What am I doing wrong? Is it not possible to have the implementation in a .cpp file?

Thanks !

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
GeneralRe: exporting global operator+ function from DLL Pin
KaЯl27-Jan-05 21:28
KaЯl27-Jan-05 21:28 
GeneralRe: exporting global operator+ function from DLL Pin
Jim Crafton28-Jan-05 3:27
Jim Crafton28-Jan-05 3:27 
GeneralRe: exporting global operator+ function from DLL Pin
Bo Hunter28-Jan-05 11:30
Bo Hunter28-Jan-05 11:30 
GeneralRe: exporting global operator+ function from DLL Pin
Jim Crafton28-Jan-05 13:47
Jim Crafton28-Jan-05 13:47 
GeneralAdd Lib in an Ocx project Pin
rushing27-Jan-05 16:59
rushing27-Jan-05 16:59 
GeneralC++ 4.2 smilie errors...help! Pin
shaveyourhead27-Jan-05 16:47
shaveyourhead27-Jan-05 16:47 
GeneralRe: C++ 4.2 smilie errors...help! Pin
Jim Crafton27-Jan-05 17:15
Jim Crafton27-Jan-05 17:15 
GeneralRe: C++ 4.2 smilie errors...help! Pin
shaveyourhead27-Jan-05 18:10
shaveyourhead27-Jan-05 18:10 
GeneralRe: C++ 4.2 smilie errors...help! Pin
Jim Crafton28-Jan-05 3:17
Jim Crafton28-Jan-05 3:17 
GeneralRe: C++ 4.2 smilie errors...help! - Problem Resolved. Thanks Pin
shaveyourhead28-Jan-05 5:28
shaveyourhead28-Jan-05 5:28 
GeneralSimple Calculator (Someone PLEASE HELP ME!!!!!) Pin
Atptour27-Jan-05 16:13
Atptour27-Jan-05 16:13 
GeneralRe: Simple Calculator (Someone PLEASE HELP ME!!!!!) Pin
Jim Crafton27-Jan-05 17:18
Jim Crafton27-Jan-05 17:18 
GeneralRe: Simple Calculator (Someone PLEASE HELP ME!!!!!) Pin
DHAPPREP27-Jan-05 17:55
DHAPPREP27-Jan-05 17:55 
GeneralRe: Simple Calculator (Someone PLEASE HELP ME!!!!!) Pin
David Crow28-Jan-05 3:12
David Crow28-Jan-05 3:12 
GeneralRe: Simple Calculator (Someone PLEASE HELP ME!!!!!) Pin
V.27-Jan-05 23:28
professionalV.27-Jan-05 23:28 
GeneralRe: Simple Calculator (Someone PLEASE HELP ME!!!!!) Pin
David Crow28-Jan-05 3:03
David Crow28-Jan-05 3:03 
GeneralRe: Simple Calculator (Someone PLEASE HELP ME!!!!!) Pin
David Crow28-Jan-05 3:02
David Crow28-Jan-05 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.