Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
DLLs and VBA: Who free's a variant?
Hi James,
This is not my area of expertise, so you'll likely get a much more definitive answer to this question in the microsoft.public.vc.language newsgroup, but my impression is that whomever created the SAFEARRAY is responsible for freeing it. -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * "James Scott" wrote in message om... Hi, I have a VC++ DLL function which is returning a variant to VBA. The variant contains a SAFEARRAY (by ref) allocated by the function which may in turn contain other variants etc. All this being allocated with CoTaskMemAlloc.. It works fine, except it looks to me like VBA doesn't deallocate the structures it's getting back when it's finished with them. I've seen some rumours about IDL's and [in] [out] parameters being the way to do this, anyone got any ideas? James |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Variant valiables problem | Excel Discussion (Misc queries) | |||
To get a sum for variant currency values | Excel Discussion (Misc queries) | |||
String to Variant incorrect conversion | Excel Worksheet Functions | |||
How do I assign range to variant and use | Excel Discussion (Misc queries) | |||
How do DLLs Work? | Excel Programming |