Suppose :
1. DLL_A wraps the ACom_Person
2. in DLL_B a function calls like below:
...
ACom_Person.set_age(16)
ACom_Person.set_name("bob") , will cause run-time error, says empty_string....
...
Note that if the caller & ACom_Person are in the same DLL, it will have no problem.
TO solve the problem, just produce a dummy protocol ACom_Dummy
int32 xx = 1;
string yy = 2;
and let DLL_CommFrame include the ACom_Dummy.cc/AComm_Dummy.h into the project.
Then the problem solved, How strange !!!
1. DLL_A wraps the ACom_Person
2. in DLL_B a function calls like below:
...
ACom_Person.set_age(16)
ACom_Person.set_name("bob") , will cause run-time error, says empty_string....
...
Note that if the caller & ACom_Person are in the same DLL, it will have no problem.
TO solve the problem, just produce a dummy protocol ACom_Dummy
int32 xx = 1;
string yy = 2;
and let DLL_CommFrame include the ACom_Dummy.cc/AComm_Dummy.h into the project.
Then the problem solved, How strange !!!