Karsten Lundqvist
2014-12-02 13:45:00 UTC
Hi
I use Robocode to teach Evolutionary Computation to my final year students
at the University of Reading.
I have in the past asked them to develop the robots in Java/C#/C++, and the
robot side of things works well.
But last year a student pointed out to me that the BattleRunner couldn't be
set up in C++. This year I intended to get it to work in C++ as well.
Unfortunately I have not been able to do that after 1.5 days of work...
When I set up a C++ project and reference jni4net.n-(anyversion) and start
adding code, immediately when I build I get an error:
"Error 1 error C1093: API call 'GetClassLayout' failed '0x80131130' :
c:\robocode\libs\jni4net.n-0.8.7.0.dll 1 1 CppBattleRunnner"
Only very old (2005-2008) websites have similar error messages, but I have
yet to find any I have found helpful.
<Loading Image...
>
I have furthermore tried all the different CLR cllasses available, but
immediately after adding a class, if I build, I'll get the error. I do not
add any code at all.
I have rebuilt jni4net from source.
I have rebuilt old and new versions of jni4net
I have tried updating/downgrading .NET frameworks of all components so that
they match.
I have moved jni4net dlls to different positions inside and outside
robocode folders.
I am getting to the end of the road here, and am so close at just saying
use C# on .NET. But I hate giving up and thought maybe one of you might
know what could cause this issue?
Cheers
Karsten Lundqvist
I use Robocode to teach Evolutionary Computation to my final year students
at the University of Reading.
I have in the past asked them to develop the robots in Java/C#/C++, and the
robot side of things works well.
But last year a student pointed out to me that the BattleRunner couldn't be
set up in C++. This year I intended to get it to work in C++ as well.
Unfortunately I have not been able to do that after 1.5 days of work...
When I set up a C++ project and reference jni4net.n-(anyversion) and start
adding code, immediately when I build I get an error:
"Error 1 error C1093: API call 'GetClassLayout' failed '0x80131130' :
c:\robocode\libs\jni4net.n-0.8.7.0.dll 1 1 CppBattleRunnner"
Only very old (2005-2008) websites have similar error messages, but I have
yet to find any I have found helpful.
<Loading Image...
I have furthermore tried all the different CLR cllasses available, but
immediately after adding a class, if I build, I'll get the error. I do not
add any code at all.
I have rebuilt jni4net from source.
I have rebuilt old and new versions of jni4net
I have tried updating/downgrading .NET frameworks of all components so that
they match.
I have moved jni4net dlls to different positions inside and outside
robocode folders.
I am getting to the end of the road here, and am so close at just saying
use C# on .NET. But I hate giving up and thought maybe one of you might
know what could cause this issue?
Cheers
Karsten Lundqvist
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.