XainFaith
12-08-2011 21:47:45
Hello i just recently started using MOgre again and i wanted to use MyGui so i went through the process of building it with CMake and everything seems to of gone well. However when i try and DLL Import the methods from MyGui.OgrePlatform.Export_d.dll or the release version. I get the following error.
{"Unable to load DLL 'MyGUI.OgrePlatform.Export_d.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)"}
ill post the code below for the C# half of the dll imports since the other part is in the MyGui source i got from the SVN it should not be hard to view.
However if someone wants that part posted i will do so.
C# Code Below
Things i have done.
I have made sure all the required dll's are in the debug folder.
i have used a dependency checker to be sure that all required are there too.
The exception is thrown when i try to call CreateGui().
I am really at my wits end here and pretty much blind to whats going on, any and all help is great appreciated.
this is the last piece i need to start the serious side of coding for my game.
Regards XainFaith
{"Unable to load DLL 'MyGUI.OgrePlatform.Export_d.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)"}
ill post the code below for the C# half of the dll imports since the other part is in the MyGui source i got from the SVN it should not be hard to view.
However if someone wants that part posted i will do so.
C# Code Below
using System;
using System.Runtime.InteropServices;
using Mogre;
namespace MyGUI.OgrePlatform
{
public class Export
{
#region Export
#if DEBUG
[DllImport("MyGUI.OgrePlatform.Export_d.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void Export_CreateGUI();
[DllImport("MyGUI.OgrePlatform.Export_d.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_DestroyGUI();
[DllImport("MyGUI.OgrePlatform.Export_d.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetRenderWindow([MarshalAs(UnmanagedType.LPStr)]string _name);
[DllImport("MyGUI.OgrePlatform.Export_d.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetSceneManager([MarshalAs(UnmanagedType.LPStr)]string _name);
[DllImport("MyGUI.OgrePlatform.Export_d.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetActiveViewport(int _index);
#else
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void Export_CreateGUI();
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_DestroyGUI();
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetRenderWindow([MarshalAs(UnmanagedType.LPStr)]string _name);
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetSceneManager([MarshalAs(UnmanagedType.LPStr)]string _name);
[DllImport("MyGUI.OgrePlatform.Export.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Export_SetActiveViewport(int _index);
#endif
#endregion
public static void CreateGUI()
{
Export_CreateGUI();
}
public static void DestroyGUI()
{
Export_DestroyGUI();
}
public static void SetRenderWindow(RenderWindow _renderWindow)
{
Export_SetRenderWindow(_renderWindow.Name);
}
public static void SetSceneManager(SceneManager _sceneManager)
{
Export_SetSceneManager(_sceneManager.Name);
}
public static void SetActiveViewport(int _index)
{
Export_SetActiveViewport(_index);
}
}
}
Things i have done.
I have made sure all the required dll's are in the debug folder.
i have used a dependency checker to be sure that all required are there too.
The exception is thrown when i try to call CreateGui().
I am really at my wits end here and pretty much blind to whats going on, any and all help is great appreciated.
this is the last piece i need to start the serious side of coding for my game.
Regards XainFaith