Error on execute a simple test with VB.NET

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
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Error on execute a simple test with VB.NET

Post by mcunha98 »

Using this simple code...

Code: Select all

Imports System
Imports System.IO
Imports Irrlicht
Imports Irrlicht.Video
Imports Irrlicht.Core
Imports Irrlicht.Scene

Module Module1
    Sub Main()
        Dim mDevice As New IrrlichtDevice(Video.DriverType.OPENGL, New Dimension2D(1024, 768), 32, False, True, False)
        Dim mDebug As System.IO.TextWriter

        mDebug = Console.Out

        If (mDevice Is Nothing) Then
            mDebug.WriteLine("Device nao definido !")
            Exit Sub
        End If

        Dim mScene As ISceneManager = mDevice.SceneManager
        Dim mDriver As IVideoDriver = mDevice.VideoDriver

        While mDevice.Run()


        End While


    End Sub

End Module
I receive a message error. I add the reference of IrrLicht.Net for project but when i run the project...
System.IO.FileNotFoundException was unhandled
Message="Não foi possível encontrar o módulo especificado. (Exception from HRESULT: 0x8007007E)"
Source="HP"
StackTrace:
at HP.Module1.Main()
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Post by mcunha98 »

For general information, the solution of this problem is easy...

Copy the files irrlicht.dll and irrlichtnet.dll for your system32 folder (when you compile the application, the irrlichtnet.dll is copied into the debug\release folder).
Locked