cast error after compiling xerces.lib /komische TypeCast-fehler

M

Martin Himmel

Hello Newsgroup,
I want to build xerces.lib (actually dynamical, but as there are many linker
errors using the dll, the static .lib version)
ich möchte die xercesc-lib erstellen.
eigentlich die dynamische, aber da ich damit eine reihe von linkerprobleme
erhalten habe, nun die statische version.

After compiling I got the following errors:
dort bekomme ich beim erstellen mittlerweile (nur noch) die fehler:
1.
com\XMLDOMDocument.cpp(1461) : error C2664: '_wfopen': Konvertierung des
Paramet
ers 2 von 'const char [3]' in 'const wchar_t *' nicht möglich
Die Typen, auf die verwiesen wird, sind nicht verknüpft; die
Konvertieru
ng erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C-
oder Funktionsformat

in der entsprechenden Zeile von com\XMLDOMDocument.cpp steht:
FILE* fp = _tfopen(file, "wt");

2.
com\XMLHTTPRequest.cpp(885) : error C2664: 'SysAllocStringByteLen':
Konvertierun
g des Parameters 1 von 'TCHAR *' in 'LPCSTR' nicht möglich
Die Typen, auf die verwiesen wird, sind nicht verknüpft; die
Konvertieru
ng erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C-
oder
Funktionsformat.

in com\XMLHTTPRequest.cpp(885) steht:
*pVal = SysAllocStringByteLen(psz,m_lResponseBodyLength);

does anybody know how I can get it running?
weiß jemand, wie ich die wegbekomme?

I use MS SDK with MS Visual C++ 2005 Express Edition.
(I have qt-win-opensource-src-4.1.1 installed so that I can compile by
typing qmake, nmake as there is a corresponding .pro-file for xerces)

thx
mh
 
V

Victor Bazarov

Martin said:
[..]
After compiling I got the following errors:
dort bekomme ich beim erstellen mittlerweile (nur noch) die fehler:
1.
com\XMLDOMDocument.cpp(1461) : error C2664: '_wfopen': Konvertierung
des Paramet
ers 2 von 'const char [3]' in 'const wchar_t *' nicht möglich
Die Typen, auf die verwiesen wird, sind nicht verknüpft; die
Konvertieru
ng erfordert einen reinterpret_cast-Operator oder eine Typumwandlung
im C- oder Funktionsformat

in der entsprechenden Zeile von com\XMLDOMDocument.cpp steht:
FILE* fp = _tfopen(file, "wt");

You seem to be using a non-standard function. We don't discuss them
here. Please try 'microsoft.public.vc.language'.
[..]
I use MS SDK with MS Visual C++ 2005 Express Edition. [..]

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top