Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Using irrKlang in Sharpdevelop and c

cdrtomalak
Registered User
Quote
2014-01-27 20:25:49

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


erik
Registered User
Quote
2014-01-28 08:52:08

The namespace is "IrrKlang", not "irrKlang". Maybe that's the problem :)


cdrtomalak
Registered User
Quote
2014-01-29 19:50:05

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".


niko
Moderator
Quote
2014-01-30 07:43:22

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact