SFML community forums

Bindings - other languages => DotNet => Topic started by: CssHammer on January 24, 2015, 01:21:36 pm

Title: How to use Clock class
Post by: CssHammer on January 24, 2015, 01:21:36 pm
I downloaded SFML.Net-2.1-32bits, and because of missing csfml-system-2.dll I grabbed it from lastest CSFML nighty build. Now how I can use Clock class if I haven`t got sfmlnet-system-2.
This is what i have:
 (http://s019.radikal.ru/i606/1501/a0/7ca9ad03e44b.png)
Title: Re: How to use Clock class
Post by: Laurent on January 24, 2015, 01:32:51 pm
The system module has been added to SFML.Net adter 2.1, you must compile the latest sources.
Title: Re: How to use Clock class
Post by: CssHammer on January 24, 2015, 03:43:12 pm
Can you give me a direct link, please?
Title: Re: How to use Clock class
Post by: Laurent on January 24, 2015, 04:01:01 pm
Everything that you need is on the website.
Title: Re: How to use Clock class
Post by: CssHammer on January 24, 2015, 04:33:02 pm
I downloaded everything that I can, and nothing contains this class
Title: Re: How to use Clock class
Post by: Laurent on January 24, 2015, 04:49:08 pm
Quote from: sfml-dev.org » Download » Bindings » SFML.Net
Current sources

The SFML.Net repository can be found at github.com (https://github.com/SFML/SFML.Net). From there, you can download the current source code (which contain the sources of the examples).

Was it hard to find?
Title: Re: How to use Clock class
Post by: CssHammer on January 24, 2015, 05:22:20 pm
So... why now I have System.BadImageFormatException in sfmlnet-graphics-2.dll... ???
Title: Re: How to use Clock class
Post by: Laurent on January 24, 2015, 06:03:00 pm
Which version of the CSFML DLLs are you using?
Title: Re: How to use Clock class
Post by: CssHammer on January 24, 2015, 09:37:26 pm
That ones, which were put in SFML.Net-master zip in extlibs/x64 folder on github...
Title: Re: How to use Clock class
Post by: Laurent on January 25, 2015, 09:48:18 am
They are not up-to-date, you should recompile it or take the latest nightly builds.
Title: Re: How to use Clock class
Post by: CssHammer on January 25, 2015, 10:24:37 am
So in nighty builds I tried this:
(http://i077.radikal.ru/1501/5a/539b2d9509c9.jpg)
and this:
(http://s61.radikal.ru/i171/1501/c4/d46d2c24ca36.jpg)
But its the same...may be I download the wrong packages?
Title: Re: How to use Clock class
Post by: Laurent on January 25, 2015, 10:54:24 am
Have you set everything for 32 bits? (your SFML.Net DLLs and project as well)
Title: AW: How to use Clock class
Post by: eXpl0it3r on January 25, 2015, 11:25:04 am
Keep in mind that due to incompatiblity CSFML doesn't yet work with SFML 2.2.
Besides that you don't need SFML since it has been linked statically into CSFML.
Title: Re: How to use Clock class
Post by: CssHammer on January 26, 2015, 06:59:23 pm
So all this libraries can only be set on x64 or x86 or Any CPU. And there are no warnings if all projects was set on x86
(http://s018.radikal.ru/i527/1501/e1/b144039fe755.png)
Title: Re: How to use Clock class
Post by: Ztormi on January 27, 2015, 02:16:46 pm
Are the dlls copied into bin directory?

Adding them into project root doesn't automatically copy them.
You'll have to either
a) place them into ProjectRoot/lib and include that folder into the project or
b) use postbuild events to copy them with commandline or
c) copy them manually
Title: Re: How to use Clock class
Post by: CssHammer on January 27, 2015, 07:24:01 pm
Yes, they are...
Title: Re: How to use Clock class
Post by: CssHammer on January 27, 2015, 07:42:59 pm
It would be great if someone send me an archive with workable solution (cssham03@gmail.com). If you can, I will leave you with such annoying requests ;D
Title: Re: How to use Clock class
Post by: zsbzsb on January 27, 2015, 09:57:47 pm
Its not that complicated... Download CSFML from the nightly builds and SFML.NET from github. Then make sure you set all managed .net projects to either x86 or x64 and make sure the csfml libs match whichever choice you made.