Dinesh, While I have no idea if it could fix your code (Iād be very surprised if it did), but XALAN-C716 was created due to the reply to an email I sent to this mailing list on the 13-th of September.
Martin From: Dinesh Behl [mailto:dinesh.b...@gmail.com] Sent: Wednesday, October 05, 2011 8:50 PM To: xalan-dev@xml.apache.org Subject: Re: Issue related to Stream Transform on Windows. Hi, Please let me know if the following bug Key: XALANC-716 URL: https://issues.apache.org/jira/browse/XALANC-716 has been created against my query? Dinesh On Wed, Oct 5, 2011 at 11:20 AM, Dinesh Behl <dinesh.b...@gmail.com<mailto:dinesh.b...@gmail.com>> wrote: Hi, I also tried giving const XMLCh *const foo = reinterpret_cast<const XMLCh *const>("foo"); inputSource.setSystemId(foo); Then it compiles but gives linker error error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall xercesc_2_7::InputSource::setSystemId(wchar_t const * const)" (__imp_?setSystemId@InputSource@xercesc_2_7@@UAEXQB_W@Z) referenced in function _main 1>C:\srcLME\StreamTransform\test\Debug\test.exe : fatal error LNK1120: 1 unresolved externals Dinesh 2011/10/5 <kesh...@us.ibm.com<mailto:kesh...@us.ibm.com>> The compiler is telling you that you're passing in the wrong kind of string. The function expects XMLCh chararacters, not XalanDOMChar characters. ______________________________________ "You build world of steel and stone I build worlds of words alone Skilled tradespeople, long years taught: You shape matter; I shape thought." (http://www.songworm.com/lyrics/songworm-parody/ShapesofShadow.html) Dinesh Behl <dinesh.b...@gmail.com<mailto:dinesh.b...@gmail.com>> wrote on 10/05/2011 10:11:52 AM: > From: > > Dinesh Behl <dinesh.b...@gmail.com<mailto:dinesh.b...@gmail.com>> > > To: > > xalan-dev@xml.apache.org<mailto:xalan-dev@xml.apache.org> > > Date: > > 10/05/2011 10:12 AM > > Subject: > > Re: Issue related to Stream Transform on Windows. > > Hi, > > Thanks for the reply. > > If I won't change the project settings to (treat wChar_t as built in > type = NO) then I got following error > error C2664: 'xercesc_2_7::InputSource::setSystemId' : cannot > convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to > 'const XMLCh *const '1> Types pointed to are unrelated; conversion > requires reinterpret_cast, C-style cast or function-style cast > and even after reinterpret_cast Igot the error. > Dinesh > > 2011/10/5 <kesh...@us.ibm.com<mailto:kesh...@us.ibm.com>> > First step: Can you build and run without your change? > > If so: The code thinks your change is incorrect, since it is having > unintended effects. Ask whether you really need this change at all, > and/or whether there's another way to accomplish what you need. You > SHOULDN'T have to patch code to handle a simple setSystemId call. > > > ______________________________________ > "You build world of steel and stone > I build worlds of words alone > Skilled tradespeople, long years taught: > You shape matter; I shape thought." > (http://www.songworm.com/lyrics/songworm-parody/ShapesofShadow.html) > > Dinesh Behl <dinesh.b...@gmail.com<mailto:dinesh.b...@gmail.com>> wrote on > 10/05/2011 09:45:54 AM: > > > From: > > > > Dinesh Behl <dinesh.b...@gmail.com<mailto:dinesh.b...@gmail.com>> > > > > To: > > > > xalan-dev@xml.apache.org<mailto:xalan-dev@xml.apache.org> > > > > Date: > > > > 10/05/2011 09:46 AM > > > > Subject: > > > > Issue related to Stream Transform on Windows. > > > > Hi, > > I am trying to debug the StreamTransform sample given along with > > Xalan 1.10 package, it is build successfully with a change in the > > project (treat wChar_t as built in type = NO) to solve linking problem of ć > > "inputSource.setSystemId(XalanDOMString("foo").c_str()); " > > File used > > : StreamTransform.cpp > > Environment > > : Visual Studio 2008, Windows Server 2008 Standard > > Packages > > : Xalan 1.10 , Xerces 2.7 > > Everything works fine but it crashes at the statement > > int theResult = > > theXalanTransformer.transform(&theXMLStream, inputSource, cout); > > Can anyone please suggest me what I am doing wrong. I am using the > > code as provided in the sample, NO Change.ć > > Thanks > > Dinesh[attachment "StreamTransform.cpp" deleted by Joseph Kesselman/ > > Watson/IBM] > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > xalan-dev-unsubscr...@xml.apache.org<mailto:xalan-dev-unsubscr...@xml.apache.org> > > For additional commands, e-mail: > > xalan-dev-h...@xml.apache.org<mailto:xalan-dev-h...@xml.apache.org> ________________________________ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to mailad...@usoft.com and then delete it from your system. USoft is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.