Re: Calling DLL Functions with string return values
The reason that I asked what build you were using is because this may have been an issue that was already resolved, so be sure to check which build you were using by going to HELP->ABOUT SETUP FACTORY
Announcement
Collapse
No announcement yet.
Calling DLL Functions with string return values
Collapse
X
-
Re: Calling DLL Functions with string return values
Thanks for the follow-up, but could you point me to a place in the help that answers my question? I looked in the obvious place (Call DLL Function) but it doesn't address this issue.
Leave a comment:
-
-
Re: Calling DLL Functions with string return values
What build of the product are you currently using? You can find that information under HELP->ABOUT SETUP FACTORY. Make sure that you are using the current build 6.0.1.2.
Leave a comment:
-
-
Calling DLL Functions with string return values
I'm successfully calling a function in a DLL from my setup. The return value from my function is a string.
I notice that Setup Factory FreeLibrary's my DLL immediatly after calling the function. Since my function returns a pointer to a static buffer in the DLL, setup factory gets no result.
I was able to address this problem by allocating some heap memory and returning my value in that.
What is the correct protocol for this type of thing? I would ideally like Setup Factory to be freeing this memory.
Thanks,
DanTags: None
-
Leave a comment: