[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4675: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4677: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4678: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4679: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
PocketMatrix • View topic - ShellExecute
This site is no longer active and is available for archival purposes only. Registration and login is disabled.

ShellExecute


ShellExecute

Postby Nic-Gun » May 8, 2006 @ 9:05am

User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » May 8, 2006 @ 10:24am

Hi,

You can use the http class to submit your highscores, it won't be necessary to use ShellExecute.

For example:
//Call this once, for example on ClassMain::OnInit()
ecd.net[0]->Init(ECONN_SOCKET, this);

//Call this to submit your score
ecd.net[0]->SendHTTPGet("http://www.max-studio.net/highscores.php?score=37348&player=Jack");

For more information, check the networking tutorial: http://www.edgelib.com/index.php?node=554
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Nic-Gun » May 9, 2006 @ 1:04pm

i tried the SendHTTPGet method but it doesn't seem to work. it doesn't generate any error but it just doesn't work.

btw, is www.edgelib.com having a problem? i can't connect to the tutorial just now.
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby Nic-Gun » May 9, 2006 @ 1:07pm

correction.. it worked alright. i forgot to add the http:// in front of it. but the tutorial is still unaccessable..
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » May 9, 2006 @ 1:14pm

Yes, we're currently busy upgrading the server hosting www.edgelib.com. You can expect the site to be up shortly.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Nic-Gun » May 11, 2006 @ 4:49am

correction again.. it didn't work.. it worked when i submit the data to a local server here. but when i submit it to the net the page doesn't seem to receive anything.

my portion of code :

at ClassMain::OnInit()
shared.ecd->net[0]->Init(ECONN_SOCKET, this);

and at ClassHighScore::SubmitHiScore()

char paramtemp[10];

EHTTPRequest request("http://maxsvr/burningarmor/hiscore_submit.php");
//EHTTPRequest request("http://www.burningarmor.com/bace/hiscore_submit.php");
request.AddParam("a", shared->playername);
ClassEStd::StrCpy(paramtemp, "");
ClassEStd::IntToStr(¶mtemp[strlen(paramtemp)], shared->currentlevel, 10);
request.AddParam("b", paramtemp);
ClassEStd::StrCpy(paramtemp, "");
ClassEStd::IntToStr(¶mtemp[strlen(paramtemp)], shared->redset.score, 10);
request.AddParam("c", paramtemp);

shared->ecd->net[0]->SendHTTPPost(&request);

do i need to add more code there?
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » May 11, 2006 @ 9:23am

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Nic-Gun » May 12, 2006 @ 1:27pm

that's strange.. i tried it just now but it didn't work. what do you mean about device? well, i submitted it with my personal computer and it's connected to the internet.

does firewall affect the submission? or should i alter some settings here and there maybe?
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » May 12, 2006 @ 2:49pm

I've asked about the device because you might have tested it on a mobile device.

It could be that the firewall is blocking your connection (if you have Windows XP SP2 installed, it can block outgoing connections). Also, you may have to wait a short while until the request is complete.

You can also add the OnNetMessage() event to your framework and check incoming network messages. Messages are documented here: http://www.edgelib.com/index.php?node=265
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Presto » May 12, 2006 @ 10:06pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Nic-Gun » May 13, 2006 @ 4:42am

User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby Petre » May 13, 2006 @ 11:50am

Petre
pm Member
 
Posts: 34
Joined: Apr 1, 2006 @ 4:34pm


Postby Nic-Gun » May 13, 2006 @ 3:16pm

User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Postby edge » May 14, 2006 @ 12:45pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Nic-Gun » May 16, 2006 @ 2:35am

i just asked my admin to remove the firewall and he asked me back which port should be opened..

so which port does edge use to connect to the internet?

i also added the OnNetMessage() but the program never seems to reach there.
User avatar
Nic-Gun
pm Member
 
Posts: 61
Joined: Apr 7, 2005 @ 6:50am
Location: Jakarta, Indonesia


Next

Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron