I did this tutorial exactly step by step and indeed it works. But this doesn't solve my problem and I'm even more confused.
1. I've started project form template Visual C++>Win32 Project>Choosed "Console application" from wizard.
2. I did exactly what tutorial says.
3. I got an error:
error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' c:\Users\Suchy\documents\visual studio 2010\Projects\SFML Test\SFML Test\sfml-graphics-d.lib(sfml-graphics-d-2.dll)
So I go to project properties>Configuration Manager>Active solution platform>new:
Type or select new platform: x64
Copy setting from: Win32
Create new project platforms: true
>OK
-project compiles.
4. I've copied dll files to "..\porject directory\project name\x64\debug" folder of my project (usually I see .exe files there) but i sill got "dll missing" errors so i copied it also to "..\porject directory\project name\" and magically everthing works fine now.
5. I've linked newtwork module also and this works too.
Now I've got following additional questions:
q1. On downloads page it says
On Windows, choosing 32 or 64-bit libraries should be based on which platform you want to compile for, not which OS you have. Indeed, you can perfectly compile and run a 32-bit program on a 64-bit Windows. So you'll most likely want to target 32-bit platforms, to have the largest possible audience. Choose 64-bit packages only if you have good reasons.
First I thought "on which platform you want to compile for" means what is my actual system, regardles of what OS I'm using (I believe you can have 32bit OS on 64 computer) but now I uderstand it says about target OS version of my program. I know it's probably only my stupidity but without this "for" you could get it wrong...
q2. One time I have .exe files located at "..\porject directory\project name\bin\debug", another it's "..\porject directory\debug" what it depends on? In above procject I have seen that I acutally don't have an .exe file under "..\porject directory\project name\x64\debug" but in "..\porject directory\debug".
Also how it works if I put dll files in "..\porject directory\project name" when I run it through VS (of course this does not work if I fire app from explorer without copying those files).
q3. Error I mentioned in step 3 says "c:\Users\Suchy\documents\visual studio 2010\Projects\SFML Test\SFML Test\sfml-graphics-d.lib(sfml-graphics-d-2.dll)" - how this works? There is no even such file in this folder.
g4. What oryginal(2019) error means. I've read this page
https://msdn.microsoft.com/en-au/library/799kze2z.aspx but i still get no clue about his. Especially what is "(__imp_??1TcpSocket@sf@@UAE@XZ)" and where "_wmain" is defined?
Main problem stay. I want to incorporate this library to existing project. Not even the one I used in first post.
The target project will be DLL with different settings. So, what exactly have to/cannot be setup in order to work with this library? I don't want to create new project just to be able to use sockets in it.
Obviously I'm not very experienced in VS and C++ and some of my questions may seem stupid but if you have answer to any of them I will be happy.