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

Author Topic: Very final step of installation...  (Read 3763 times)

0 Members and 2 Guests are viewing this topic.

NameUser

  • Newbie
  • *
  • Posts: 30
    • View Profile
Very final step of installation...
« on: June 01, 2012, 03:27:05 am »
I've decompiled SFML, and setup a project in VS2011, and all, but there's one issue. Though it recognizes and loads all of the libraries, and gives no error for declarations such as declaring an sf::texture, the use of any functions belonging to any of the SFML classes, such as *texture*.LoadFromFile("filename"), or window->IsOpen() gives an error, saying that the class has no member by that name.

Any common mistake I'm making here? I'm pretty sure I decompiled and installed everything correctly.

Thanks.

(Dynamic Debug, Visual Studio 2011)

Rosme

  • Full Member
  • ***
  • Posts: 169
  • Proud member of the shoe club
    • View Profile
    • Code-Concept
Re: Very final step of installation...
« Reply #1 on: June 01, 2012, 05:28:46 am »
If you use the latest one, well you are using wrong fonction. The names use the camelCase. See here: http://en.sfml-dev.org/forums/index.php?topic=6709.0
GitHub
Code Concept
Twitter
Rosme on IRC/Discord

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Very final step of installation...
« Reply #2 on: June 01, 2012, 12:40:43 pm »
The verb is 'to compile' and 'to decompile' would be the the reverse (having a binary application and getting its code, mostly in assembler).

Are you sure you meant VS11 and not VS10?
Otherwise as Rosme already said it's loadFromFile("string") or isOpen().
Next time check the documentation of the version you're using.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Re: Very final step of installation...
« Reply #3 on: June 01, 2012, 03:37:39 pm »
Are you sure you meant VS11 and not VS10?
VS11 RC (or beta, I'm not sure) has been out for a while.

Actually, it seems there's an RC for VS12 now:
http://www.microsoft.com/visualstudio/11/en-us/downloads

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Very final step of installation...
« Reply #4 on: June 01, 2012, 03:42:16 pm »
The compiler version (VC++ 11) must not be confused with the IDE version (VS 2012).
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Very final step of installation...
« Reply #5 on: June 01, 2012, 04:15:52 pm »
The compiler version (VC++ 11) must not be confused with the IDE version (VS 2012).

Oh right! Thanks Laurent for pointing that out, because I was confused too.  ;D

@Topic:
Did it now work with camelCase style?
Also VS's intellisense should tell you if a function doesn't exist or which functions do exist (unless you have deactivated it...).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

NameUser

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Very final step of installation...
« Reply #6 on: June 01, 2012, 09:13:20 pm »
Thanks.

This must be a newer version of SFML than I had before, as that all worked before. I guess the function names were changed since then to use camelCase.

WiltedChameleon

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: Very final step of installation...
« Reply #7 on: June 01, 2012, 10:37:51 pm »
Actually, it seems there's an RC for VS12 now:
http://www.microsoft.com/visualstudio/11/en-us/downloads

Lifesaver. Never would've noticed that. Hope they uncapitalised the menu bar before they released though. I suppose I'll have to wait and see.