i want to use SWIG for using game-physics-enine http://www.game-physics-engine.info/
for visual basic .net. You can download the engine dll and a include file on homepage. I've written a
DotNETWrapper.i with following text:
Code: Select all
%include <windows.i>
%module PhysicsAndMathLibrary
%{
D3DX9.h
PhysicsAndMathLibraryImports.h
%}
%include "PhysicsAndMathLibraryImports.h"
Code: Select all
swig.exe -dllimport DotNetWrapper -c++ -csharp -o PhysicsAndMathLibraryImports_wrap.cxx -outdir ..\DotNET DotNETWrapper.i
Dim PhysicalSimulationParameter As New CPhysicalSimulationParameter("Physics/SimulationParameter.txt")
(the textfile is on the correct location). When i will start my project i'll get the following error:
Eine nicht behandelte Ausnahme des Typs 'System.EntryPointNotFoundException' ist in dotnetwrapper.dll aufgetreten.
Zusätzliche Informationen: Unable to find an entry point named ? in DLL DotNetWrapper.
and
Eine nicht behandelte Ausnahme des Typs 'System.TypeInitializationException' ist in dotnetwrapper.dll aufgetreten.
Zusätzliche Informationen: The type initializer for "SWIGExceptionHelper" threw an exception.
The creator of the engine tell me that he do not have any entry point. ......
I'm not really good in c++ and c# so i neet a little help for understanding the problem and find a solution.
Thx and Greetings