I separated a code fragment into a DLL
because it will be frequently updated and in this way it should be easier to deploy.
But I have questions about what I can do and what I cannot do with a DLL
.
- Can I pass a
std:string
or aCString
to aDLL
? - Can I pass a pointer to a
struct
withstd::string members
and fill it in aDLL
? - Can a
DLL
return a pointer to a struct allocated there? Will it be valid? Can I delete it after? - What should better to pass, a
std::String
or aCstring
?
Thanks !
See Question&Answers more detail:os