• Welcome to Valhalla Legends Archive.
 

[HeLp] LiNuX BoT

Started by BluntMasta, December 24, 2004, 01:42 AM

Previous topic - Next topic

MyndFyre

Quote from: iago on December 25, 2004, 12:44 AM
Quote from: Mephisto on December 24, 2004, 07:13 PM
Anything you create in C++ will be dependent on the platform you compile it, though the source code won't be as long as you didn't use anything platform specific in it.  You'll just need to recompile it on another platform so yes, you could make a multi-platform bot in C/C++, but you would have to distribute differenent copies of it, and as Zakath said, something that uses the internet via sockets can not be 100% portable (though easily?).  I think we had a discussion on this once too...MyndFyre?

You could also distribute source code, which automatically configures itself.  It's much easier than distributing a different binary for each platform :P

As long as you distribute cross-platform source code it will work.  But using C++, if you're heavily into the Win32 API, you're not going to get very far distributing that source code to *nix users. :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

iago

If you're going for cross platform, you wouldn't do that :P

The API for Windows and Linux sockets is identical, except for the includes.  So it's a really simple #ifdef to switch from Windows to Linux.

The GTK/Glib libraries are the best way to write cross-platform software.  They let you easily do code that will work cross platform.  There's variables (gint32, gint16), gui's, etc.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*