How to export stl symbol ?

How to export stl symbol ?

Post by Boris Sarg » Mon, 03 May 2004 20:17:26


Hi,

how can I export any stl class from a Win32 Dll, without making my program
crash ?

Thanks.
 
 
 

How to export stl symbol ?

Post by Igor Tande » Thu, 06 May 2004 07:39:16


See KB Article KB168958 "HOWTO: Exporting STL Components Inside &
Outside of a Class". Pay attention to the part where it says

<quote>
In both the DLL and the .exe file, link with the same DLL version of the
C run time. Either link both with Msvcrt.lib (release build) or link
both with Msvcrtd.lib (debug build).
</quote>

There's no chance of it working properly otherwise.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken

 
 
 

How to export stl symbol ?

Post by Boris Sarg » Thu, 06 May 2004 16:19:02

Hi Igor,


I found the article and wrote the dll. It works fine, except if I try to use
the slice_array class.
Thank you.