Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, I've added irrKlang.NET4.dll as an assembly in Sharpdevelop, and added "using irrKlang;" to my C SHARP code. (the hash char doesn't appear when the post appears!) The compiler says it can't find the namespace name. Can someone please tell me what I'm doing wrong, or the additional steps I need to take? I'm sure it's something simple! Thanks in advance |
||||
|
The namespace is "IrrKlang", not "irrKlang". Maybe that's the problem :) |
||||
|
I have downloaded the irrKlang sound library, and since I'm using C sharp with sharpdevelop I have: a) Added a reference to the DLL such that irrKlang.NET4 appears under References in the project tree. b) Added the statement 'using IrrKlang.NET4;' to my code, which corresponds exactly to one of the example programs provided. When I try to compile, SD tells me that the type or namespace name NET4 doesn't exist (are you missing an assembly reference). If I change the using statement to 'using IrrKlang;' as (rather confusingly) appears in another .net example program, my application compiles but I get the runtime error "Error: Could not load file or assembly 'irrKlang.NET4, Version .... or one of it's dependencies. An attempt was made to load a program with an incorrect format". |
||||
|
How did you come to the conclusion that the namespace is NET4? It's not. About the "could not load file assembly" error: You might miss some Visual Studio runtime libs installed on your system. Either install them, or use the dotnet-1.1 or dotnet-2.0 irrklang version instead then. |
|