<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I resolved this by disabling the Zc:wchar_t- option in Visual Studio.
>From the GUI I had set this via the file's property page:<br>
C++, Language settings, Treat wchar_t as Built-in Type, Yes<br>
which is the default and which also matches the state of that option
for the OpenJDK build. I had set that to fix some other problem but
fortunately no longer need it.<br>
<br>
Pete<br>
===<br>
Pete Brunet wrote:
<blockquote cite="mid:4C0D79E6.8010707@a11ysoft.com" type="cite">I'm
working on a new file for OpenJDK. I get no compile errors in my
Visual Studio IDE environment but interestingly enough get a set of
problems all like this one in the OpenJDK environment:<br>
<br>
Source:<br>
const jchar* jcstr = env->GetStringCritical(name, NULL);<br>
*pszName = ::SysAllocStringLen(jcstr, env->GetStringLength(name));<br>
<br>
Compile error:<br>
error C2664: 'SysAllocStringLen' : cannot convert parameter 1 from
'const jchar *' to 'const OLECHAR *'<br>
<br>
I tried changing the warning levels in VS with no difference.<br>
<br>
I could cast the problem away but I'd like to understand what's causing
the problem so my VS environment is equivalent to the OpenJDK build
environment.<br>
<br>
Has anyone else encountered this before?<br>
<br>
Thanks, Pete<br>
<div class="moz-signature">-- <br>
<font color="#0060a0" face="Arial, sans-serif" size="1"><b>Pete Brunet</b></font><br>
<font color="#0060a0"><span style="text-decoration: line-through;">
</span></font><br>
<font color="#333333" face="Arial, sans serif" size="1">
a11ysoft - Accessibility Architecture and Development<br>
(512) 238-6967 (work), (512) 689-4155 (cell)<br>
Skype: pete.brunet<br>
IM: ptbrunet (AOL, Google), <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="mailto:ptbrunet@live.com">ptbrunet@live.com</a>
(MSN)<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.a11ysoft.com/about/">http://www.a11ysoft.com/about/</a><br>
Ionosphere: WS4G
<br>
</font>
</div>
</blockquote>
</body>
</html>