
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using RealDWG 2014, I recently changed some calls like getName(...) for several RealDWG objects to manage strings differently. I moved them from using the ACHAR*& signature, to the AcString& signature. The expectation was that I could avoid having to free the allocated memory buffer explicitly with acutDelString after.
However, upon testing, the AcDbBlockTableRecord::getName(AcString&) method call, inherited from AcDbSymbolTableRecord, returned different results than the previous AcDbBlockTableRecord::getName(ACHAR*&) call.
In the attached sample, the block name is '*U0'. The ACHAR*& call returned '*U0', but the AcString& call returned this:
mwszStr "*U" wchar_t [3]
Why is that? Should they not return the same thing?
Thanks,
Regan
Solved! Go to Solution.