[xsd-users] DLL's VS 2010 and dllexport problems revisited

Gordan Sikic gordan.sikic at uljanik.hr
Mon May 28 09:18:38 EDT 2012


Hi,


I've been bitten by the problems described in these threads:

http://www.codesynthesis.com/pipermail/xsd-users/2010-September/003010.html
http://codesynthesis.com/pipermail/xsd-users/2011-July/003356.html

all the suggestions I found didn't help, the problem did not vanish.


However,

I'm in a position that does not require complete class to be exported.
If I change definitions in headers so only member functions are
exported, and not class itself, everything works like a charm.

The approach is descried in the following document, in Selective Member
Import/Export section:

http://msdn.microsoft.com/en-us/library/81h27t8c%28v=vs.80%29.aspx

Right now, I would like to change attributes of all member functions in
automatically generated classes to include import/export macro, i.e.:


class DLL_API SomeData
{
   return_type function_name();
   void other_return_type some_other_function();
};



should become :

class SomeData
{
   DLL_API return_type function_name();
   DLL_API other_return_type some_other_function();
};


note, class itself is NOT exported, but functions are.

I would like to ask is there possibility to automatically add this
function decoration during parsing XSD schema?

thanks,
Gordan

The information in this email is confidential and it is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any distribution, copying, duplication or disclosure is prohibited and may be unlawful. If you have received this email in error, please notify the sender immediately and destroy it, and all copies of it.

Ova poruka je povjerljiva i namijenjena isključivo primateljima navedenim u zaglavlju iste. Svaki pristup, distribucija, umnožavanje ili otkrivanje sadržaja ove poruke trećim osobama strogo je zabranjeno i smatra se protuzakonitim. Ukoliko ste greškom dobili ovu poruku, molimo Vas da što prije obavijestite pošiljatelja poruke i uništite sve postojeće kopije.



More information about the xsd-users mailing list