Use dllexport
only for the A
class, provided that the type of the data
parameter is not another class defined in ProjA
.
When a class is "exported", all the code for that class is ans stays in it's DLL. If the ProjB knows nothing else from the ProjA classes, it should works.
Be sure to keep the two Dlls in sync (build otions, type of C RunTime...)