Hi,
I followed the steps in the tutorial and tailor it for my needs. 
In my case, I have two c++ applications; one for sending messages and other 
for receiving. I created a proto file to define my object to be exchanged 
between these two distinct applications. Then, I created my object with 
protoc tool provided.
What I want is to put this generated object class in a separate DLL or lib 
for enabling the two applications (sender, receiver) to be linked with this 
DLL to use this shared object for exchanging in between. As this object 
will be placed in a DLL, AFAIK, I need to export methods in this shared 
object to let sender and receiver applications to create this object and 
make calls. 

What is the best way to achieve this mechanism? I saw there is 
"--cpp_out=dllexport_decl=__declspec(dllexport)" option for protoc tool to 
export classes but it does not help for the inherited members, such as 
method: protoObject.SerializeAsString().

TIA!

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/rBpRUWksG-gJ.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to