You have probably remembered me with tens of strange questions on combining strange technologies so here's another. After jumbling around many different languages and standards my project finally settled on C++. You can imagine my horror when I realized that SFS2X, of course, does not support that directly.
My question is now why are you not supporting C++ when the majority of games are still developed in nit. Don't you think you're missing out on a good piece of the market? Also, since I'm stuck with this, do you think that it is just too much effort to try and used your (as you said - managed) C# .dll with my C++ code and see where will that take me?
Why not C++?
Why not C++?
Music was my first love, and it will be my last
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Re: Why not C++?
SmartFoxServer is mainly targeted at web based and mobile gaming, although it can be used for "thick-clients" as well if you use Unity or Java etc...
Almost all our clients, big and small, work with high level tools and languages and they try to stay away from hard-core/low level coding which is painful and expensive. With tools such as Unity, iOS, and Flash with HW acceleration you can build a wide range of games that can span from indie, one-man-band projects to pretty huge virtual worlds with millions of users.
Additionally in the world of C++ there's already quite a lot of solutions both opensource and commercial which offer C++ development on the server side too, which is probably what C++ devs expect. It's a very different world.
Anyways the .Net DLL is a viable solution to use our API in pure C# or managed C++ ( plus if you stick with the .Net framework you can port it to Linux and Unix too via Mono )
Let us know how it goes
Almost all our clients, big and small, work with high level tools and languages and they try to stay away from hard-core/low level coding which is painful and expensive. With tools such as Unity, iOS, and Flash with HW acceleration you can build a wide range of games that can span from indie, one-man-band projects to pretty huge virtual worlds with millions of users.
Additionally in the world of C++ there's already quite a lot of solutions both opensource and commercial which offer C++ development on the server side too, which is probably what C++ devs expect. It's a very different world.
Anyways the .Net DLL is a viable solution to use our API in pure C# or managed C++ ( plus if you stick with the .Net framework you can port it to Linux and Unix too via Mono )
Let us know how it goes
Re: Why not C++?
Tried accessing the .NET dll from managed C++ but there were quite a few issues :S
Music was my first love, and it will be my last
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Re: Why not C++?
Interesting, can you post the details?
Re: Why not C++?
I'm not at home right now but one of the issues that I remember was that none of the methods of the SmartFox object were exposed (for example ProcessEvents) so that renders it unusable.
I followed this: http://support.microsoft.com/kb/828736 but was working with Visual Studio 2010
I followed this: http://support.microsoft.com/kb/828736 but was working with Visual Studio 2010
Music was my first love, and it will be my last
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Re: Why not C++?
Hmmm... I don't think there's a public method called ProcessEvents in that class.
So are you saying that methods such as Connect() are not available?
So are you saying that methods such as Connect() are not available?
Re: Why not C++?
Lapo wrote:Hmmm... I don't think there's a public method called ProcessEvents in that class.
So are you saying that methods such as Connect() are not available?
Exactly.
Music was my first love, and it will be my last
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Re: Why not C++?
Weird - I've never tried it directly, but Unity is a C/C++ program itself - and here it works. And the dll itself is fully managed code.
So will try to give it a shot myself with a small test program *dusts off his C++ skills*
/Thomas
So will try to give it a shot myself with a small test program *dusts off his C++ skills*
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
Re: Why not C++?
Hi,
I think you could use your C++ code at serverside by using swig http://www.swig.org/
Your code would :
Client -> Server Side Java Code (using SmartFox) -> Access C++ (using swig).
Let me know if it help you. Cause I just use Swig for calling C via PHP.
Regards.
I think you could use your C++ code at serverside by using swig http://www.swig.org/
Your code would :
Client -> Server Side Java Code (using SmartFox) -> Access C++ (using swig).
Let me know if it help you. Cause I just use Swig for calling C via PHP.
Regards.
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Re: Why not C++?
Super quick googling most likely gives the answer to why it doesnt work out of the box.
To enable this, I need to create a .def file exporting the public methods.
http://msdn.microsoft.com/en-us/library ... 90%29.aspx
This is not done automatically it seems, so will have to do this. But before doing this, the question is if you are still interested in this - and if we can make a few basic tests before I spend lots of time doing this.
/Thomas
To enable this, I need to create a .def file exporting the public methods.
http://msdn.microsoft.com/en-us/library ... 90%29.aspx
This is not done automatically it seems, so will have to do this. But before doing this, the question is if you are still interested in this - and if we can make a few basic tests before I spend lots of time doing this.
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
Who is online
Users browsing this forum: No registered users and 74 guests