Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to use Clock class  (Read 9977 times)

0 Members and 1 Guest are viewing this topic.

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
How to use Clock class
« 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:
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to use Clock class
« Reply #1 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.
Laurent Gomila - SFML developer

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: How to use Clock class
« Reply #2 on: January 24, 2015, 03:43:12 pm »
Can you give me a direct link, please?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to use Clock class
« Reply #3 on: January 24, 2015, 04:01:01 pm »
Everything that you need is on the website.
Laurent Gomila - SFML developer

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: How to use Clock class
« Reply #4 on: January 24, 2015, 04:33:02 pm »
I downloaded everything that I can, and nothing contains this class

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to use Clock class
« Reply #5 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. From there, you can download the current source code (which contain the sources of the examples).

Was it hard to find?
Laurent Gomila - SFML developer

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: How to use Clock class
« Reply #6 on: January 24, 2015, 05:22:20 pm »
So... why now I have System.BadImageFormatException in sfmlnet-graphics-2.dll... ???

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to use Clock class
« Reply #7 on: January 24, 2015, 06:03:00 pm »
Which version of the CSFML DLLs are you using?
Laurent Gomila - SFML developer

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: How to use Clock class
« Reply #8 on: January 24, 2015, 09:37:26 pm »
That ones, which were put in SFML.Net-master zip in extlibs/x64 folder on github...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to use Clock class
« Reply #9 on: January 25, 2015, 09:48:18 am »
They are not up-to-date, you should recompile it or take the latest nightly builds.
Laurent Gomila - SFML developer

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: How to use Clock class
« Reply #10 on: January 25, 2015, 10:24:37 am »
So in nighty builds I tried this:

and this:

But its the same...may be I download the wrong packages?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to use Clock class
« Reply #11 on: January 25, 2015, 10:54:24 am »
Have you set everything for 32 bits? (your SFML.Net DLLs and project as well)
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: How to use Clock class
« Reply #12 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

CssHammer

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: How to use Clock class
« Reply #13 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

Ztormi

  • Jr. Member
  • **
  • Posts: 71
  • Web developer by day. Game developer by night.
    • View Profile
Re: How to use Clock class
« Reply #14 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
« Last Edit: January 27, 2015, 02:18:19 pm by Ztormi »

 

anything