Differences in Visual Studio vs OpenJDK compiles - jchar vs OLECHAR
Pete Brunet
pete at a11ysoft.com
Mon Jun 7 22:59:50 UTC 2010
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:
Source:
const jchar* jcstr = env->GetStringCritical(name, NULL);
*pszName = ::SysAllocStringLen(jcstr, env->GetStringLength(name));
Compile error:
error C2664: 'SysAllocStringLen' : cannot convert parameter 1 from
'const jchar *' to 'const OLECHAR *'
I tried changing the warning levels in VS with no difference.
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.
Has anyone else encountered this before?
Thanks, Pete
--
*Pete Brunet*
a11ysoft - Accessibility Architecture and Development
(512) 238-6967 (work), (512) 689-4155 (cell)
Skype: pete.brunet
IM: ptbrunet (AOL, Google), ptbrunet at live.com (MSN)
http://www.a11ysoft.com/about/
Ionosphere: WS4G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20100607/067a13b1/attachment.htm>
More information about the build-dev
mailing list