Need Help by Physik Wrapper

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
gagagu
Posts: 8
Joined: Wed Jul 13, 2005 1:32 pm

Need Help by Physik Wrapper

Post by gagagu »

Hi,

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"

i compile it with the following parameter:

Code: Select all

swig.exe -dllimport DotNetWrapper -c++ -csharp -o PhysicsAndMathLibraryImports_wrap.cxx -outdir ..\DotNET DotNETWrapper.i
Everything is working fine. I've created a c# project and compile the result to a dll and include it to my visual basic project with the following code line

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
Locked