SFML community forums

Help => General => Topic started by: NameUser on June 01, 2012, 03:27:05 am

Title: Very final step of installation...
Post by: NameUser 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)
Title: Re: Very final step of installation...
Post by: Rosme 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
Title: Re: Very final step of installation...
Post by: eXpl0it3r 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.
Title: Re: Very final step of installation...
Post by: Contadotempo 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
Title: Re: Very final step of installation...
Post by: Laurent on June 01, 2012, 03:42:16 pm
The compiler version (VC++ 11) must not be confused with the IDE version (VS 2012).
Title: Re: Very final step of installation...
Post by: eXpl0it3r 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...).
Title: Re: Very final step of installation...
Post by: NameUser 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.
Title: Re: Very final step of installation...
Post by: WiltedChameleon 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.