"I tried to build apr and aprutil with the /MD option too, then I got the same runtime error."
Nooo.. It works! (Simply a didn't replaced the old dll with the new one..) In the meantime I found the following blog http://www.dreamcubes.com/blog/?itemid=43. It could have saved me a lot of effort. The only question I still have is: xmltok_impl.c xmltok_ns.c aren't included in the VC++6 project debug version, while they are included in the release version. I had to exclude them to build the release version too. Is that correct? I also had to rename expat.h.in to expat.h. Thanks a lot to the developers of log4cxx. Roberto Le informazioni contenute in questo messaggio di posta elettronica sono riservate, rivolte esclusivamente al destinatario e non comportano alcun vincolo ne' creano obblighi per la societa' mittente, salvo che cio' non sia espressamente previsto da un precedente accordo. Ogni altra persona diversa dal destinatario non puo' copiare o consegnare il presente messaggio o parte dello stesso a terzi ne' trattare in alcun modo i dati contenuti. La informiamo inoltre che l'utilizzo non autorizzato del messaggio o dei suoi allegati potrebbe costituire reato. Grazie per la collaborazione. The informations in this e-mail are are reserved, only addressed to the addressee and they are neither binding on this Society nor to be understood as creating any obligation on its part except where provided for an agreement. Everyone different from the addressee (who received this e-mail) can't neither copy nor deliver the message or a part of it in possesion of a third party, nor even deal with the informations in this e-mail. Furthermore the unauthorized use of this message or any attachments could be an offence. Thank you for your cooperation.