Hi,
I have to create a dll, and so I add EXPORT_C macro in front of each exported function implementation. I want to export a struct, too, but if I use EXPORT_C in front of the struct declaration compilation fails. How can I do it?
Thanks
Hi,
I have to create a dll, and so I add EXPORT_C macro in front of each exported function implementation. I want to export a struct, too, but if I use EXPORT_C in front of the struct declaration compilation fails. How can I do it?
Thanks
This is one of the differences between function implementation and struct declaration. You might want to supply a header file with your .dll and that header can actually contain struct declaration (and likely an IMPORT_C line for your exported method).
try:
struct TPerson{
IMPORT_C TBuf<20> Name;
IMPORT_C TBuf<20> Age;
IMPORT_C TBuf<20> Phone;
};