|
|
Is that C++ or a workaround for a broken VC++?
--
standing so tall, the ground behind
no trespassers, on every floor
a garden swing, and another door
she makes it clear, that everything is hers
A place of abode, not far from here, Ms. Van de Veer
|
|
|
|
|
Jörgen Sigvardsson wrote:
Is that C++ or a workaround for a broken VC++?
It's far too early in the morning to try and find it in the C++ spec, so let's just assume the latter for now.
--Mike--
"alyson hannigan is so cute it's crazy" -- Googlism
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Safe bet.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
i *think* set uses 1 param.Did you intend to use map.it should work fine.
benefactor
|
|
|
|
|
Yes, I'd fixed that syntax error. Thanks,
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Are there any special requirements/dlls/etc. that your users computers need if you implement ATL / WTL / STL ? New to this area.
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
I can only answar for ATL.
When using ATL you can select either to do a static link, in which case the users don't need the dll's, or you can link dynamically, then the users gonna need the dll's.
It's up to you
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Thank you
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
For WTL, there are no DLLs
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I think that some STL bits will pull in MSVCP60.DLL, which implements part of the C++ runtime library.
For the life of me, I can't remember what bits...
Steve S
[This signature space available for rent]
|
|
|
|
|
I had the impression that all the STL is implemented in header files which you include. Since STL uses templates all the implementation is in class declaration. Therefore, everything is statically linked.
Also, if you go the Dinkumware page[^] of VC fixes all you have to do is download a new version of the patched header file and put it in the include directory.
Of course, I might be wrong....
Best regards,
Alexandru Savescu
|
|
|
|
|
Some classes are actually in a DLL. Things such as std::string and std::wstring are there.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Thanks for clearing it out.
Best regards,
Alexandru Savescu
|
|
|
|
|
+ parts of the iostreams.
--
standing so tall, the ground behind
no trespassers, on every floor
a garden swing, and another door
she makes it clear, that everything is hers
A place of abode, not far from here, Ms. Van de Veer
|
|
|
|
|
Yes, put in IQ > 50 in User requirements below the System requirements on the box.
/Magnus
- I don't necessarily agree with everything I say
|
|
|
|
|
How can I decide whether the control is in design mode or not. I mean whether it's in an IDE such as VB and is being dragged and dropped, but not running as part of an application.
|
|
|
|
|
Not sure if this will work or not - give it a go - add the following to your control class:
BOOL IsUserMode()
{
BOOL bUserMode = TRUE;
HRESULT hRet = GetAmbientUserMode(bUserMode);
if (FAILED(hRet) || bUserMode)
{
return TRUE;
}
return FALSE;
}
If the control is in design mode, then the above returns FALSE ... I think ...
Faith. Believing in something you *know* isn't true.
|
|
|
|
|
|
I have a number of DLLs that use CAtlStrings in the public interfaces. At build times I recieve a large number of warnings of this nature:
SWServices\RuntimeDataPlugv1_0_0.h(102) : warning C4251: 'RuntimeDataPlugv1_0_0::m_strIconTip' : class 'ATL::CStringT<basetype,stringtraits>' needs to have dll-interface to be used by clients of class 'RuntimeDataPlugv1_0_0'
with
[
BaseType=char,
StringTraits=ATL::StrTraitATL<char,atl::chtraitscrt<char>>
]
At first I thought there was a real problem with the the use of using the template typedefs. However, everything works fine. Is there a way to get rid of these warnings? Is there something I'm missing that I should be worried about?
|
|
|
|
|
Returning CString/CAtlString from a dll is not really advisable. Simple return LPCTSTR.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I was under the impression that VC 7 fixed all the problems they had with these sorts of issues. Is there something specifically that is dangerous in CATLString? Dealing in LPCTSTR is a performance hit I'd rather not deal with.
|
|
|
|
|
hi,
i have created certain math and engg utilities for myself using a lot of stl vector,valarray,string etc.is there any problem in using them in a dll?
-huus
|
|
|
|
|
None, I use STL quite a bit in ATL COM DLLs
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
There might be a problem if you are using VC 6.0 and you are declaring a std::map or std::set . That is because the STL implementation uses a static object in the XTREE header file. You need to update the XTREE header from the Dinkumware website. Details here[^]
Best regards,
Alexandru Savescu
|
|
|
|