Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Database loading errors Pin
Anders Molin1-Jul-01 10:07
professionalAnders Molin1-Jul-01 10:07 
GeneralRe: Database loading errors Pin
Chris Klecker1-Jul-01 10:48
Chris Klecker1-Jul-01 10:48 
GeneralRe: Database loading errors Pin
Anders Molin1-Jul-01 11:58
professionalAnders Molin1-Jul-01 11:58 
GeneralNew Stream Types Pin
NullStream30-Jun-01 21:43
NullStream30-Jun-01 21:43 
GeneralRe: New Stream Types Pin
1-Jul-01 20:03
suss1-Jul-01 20:03 
Generalstupid (template related?) linkage puzzle Pin
Alex Griffing30-Jun-01 20:28
Alex Griffing30-Jun-01 20:28 
GeneralRe: stupid (template related?) linkage puzzle Pin
Michael Dunn30-Jun-01 21:29
sitebuilderMichael Dunn30-Jun-01 21:29 
GeneralRe: stupid (template related?) linkage puzzle Pin
Erik Funkenbusch1-Jul-01 1:22
Erik Funkenbusch1-Jul-01 1:22 
That's the way templates are supposed to work.

The ANSI C++ Committee created a special keyword, called "export" to allow you to put non-inlined functions outside of the translation unit, but no compiler yet supports this (not just VC).

One work around is to #include the .cpp file at the end of your .h file, which is weird, but it will allow you to more easily port it at a later date when "export" becomes supported.

The reason for this has to do with template expansion. Since the template expansion happens in the translation unit that is using the template, that means when your templates cpp file is compiled, it doesn't know what other template instantiations to create.


GeneralRe: stupid (template related?) linkage puzzle Pin
NullStream1-Jul-01 8:34
NullStream1-Jul-01 8:34 
GeneralRe: stupid (template related?) linkage puzzle Pin
Alex Griffing1-Jul-01 13:30
Alex Griffing1-Jul-01 13:30 
GeneralSliding message window Pin
30-Jun-01 13:58
suss30-Jun-01 13:58 
GeneralTo all readers - I'm collecting FAQs from this forum Pin
Michael Dunn30-Jun-01 13:44
sitebuilderMichael Dunn30-Jun-01 13:44 
Generalmemset with 32 bit values Pin
Alex Griffing30-Jun-01 11:09
Alex Griffing30-Jun-01 11:09 
GeneralRe: memset with 32 bit values Pin
Mike Nordell30-Jun-01 11:35
Mike Nordell30-Jun-01 11:35 
GeneralRe: memset with 32 bit values Pin
Ben Burnett30-Jun-01 13:17
Ben Burnett30-Jun-01 13:17 
GeneralRe: memset with 32 bit values Pin
Alex Griffing30-Jun-01 14:07
Alex Griffing30-Jun-01 14:07 
GeneralSDI question ... Pin
Hadi Rezaee30-Jun-01 8:17
Hadi Rezaee30-Jun-01 8:17 
GeneralRe: SDI question ... Pin
Hadi Rezaee30-Jun-01 17:23
Hadi Rezaee30-Jun-01 17:23 
GeneralHelp - CString::LoadString(nID) is using the wrong resource handle! Pin
James Millson30-Jun-01 8:07
James Millson30-Jun-01 8:07 
GeneralRe: Help - CString::LoadString(nID) is using the wrong resource handle! Pin
Chris Losinger30-Jun-01 8:19
professionalChris Losinger30-Jun-01 8:19 
GeneralRe: Help - CString::LoadString(nID) is using the wrong resource handle! Pin
James Millson30-Jun-01 14:53
James Millson30-Jun-01 14:53 
GeneralSimple ActiveX question ... Pin
Hadi Rezaee30-Jun-01 7:03
Hadi Rezaee30-Jun-01 7:03 
GeneralDLL IsWindow assert Pin
Peter Marino30-Jun-01 6:58
Peter Marino30-Jun-01 6:58 
GeneralRe: DLL IsWindow assert Pin
Mike Nordell30-Jun-01 8:02
Mike Nordell30-Jun-01 8:02 
GeneralRe: DLL IsWindow assert Pin
Peter Marino30-Jun-01 8:23
Peter Marino30-Jun-01 8:23 

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.