DLL A:
Class A
{
bool Execute(YourStruct objStruct /*[out]*/
{
objStruct.CString cs1 = "A";
objStruct.CString cs1 = "B";
return true;
}
}
DLL B:
You can place your struct as an out parameter to the function call to your dll.
#include "A.h"
bool YourFunction(const YourStruct objStructA /*[in]*/)
// execute returns true..that means the struct has values.
a aClass; // your class a here.
YourStruct oStruct;
if(a.Execute(oStruct))
{
CString myString = oStruct.cs1; // you got your values here.
}
i guess i have given you a fair example.
if there are any questions let me know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.