[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-atl
Subject: Re: STL
From: "Laliberte, Perley" <Perley-Laliberte () FORUM-FINANCIAL ! COM>
Date: 2001-07-13 18:13:26
[Download RAW message or body]
Thanks that worked.
Why, I'm saving it to a database as a blob. This is the only way I have found that \
works. I was hoping the STL map container would offer different avenues, although I \
know very little about STL, and that is the reason for the post. To see if an STL \
approach would fair better and idea how?
Thanks again,
Perl
-----Original Message-----
From: Ethan J. Brown [mailto:development@EASTPOINTSYSTEMS.COM]
Sent: Friday, July 13, 2001 2:09 PM
To: ATL@DISCUSS.MICROSOFT.COM
Subject: Re: STL
Perley -
> This may be ot but I thought I may find some encouraging words from
> someone, so here goes. I trying to implement a STL map that will at
some
> point be converted into a safearray. I have it working but the
performance
> is pretty slow.(I have posted several question along these lines which
have
> helped me narrow down my options.)
> I am wondering is there some canned algorithm for doing this - this
being
> convert a map into a byte stream and then into a safearray?
> Is there and alternative to using memcpy and how expensive is using
memcpy
> several time as I'm using it in the included code?
>
> I included this code so I could hopefully get some feedback on mistakes
I'm
> making/not making and possible suggestions on how to improvement the
> performance problem I'm confronting.
> using namespace std;
> typedef map<CComBSTR, CComVariant> m_MM;
> *** (as an aside)
> *** what do I need to add to get rid of the using namespace std?
just do something like typedef std::map<CComBSTR, CComVariant> m_MM;
Why do you want to copy a map to a safearray, out of curiosity?
Ethan J. Brown
East Point Systems, LLC
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:ATL-signoff-request@DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:ATL-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic