Page 1 of 2

ShellExecute

PostPosted: May 8, 2006 @ 9:05am
by Nic-Gun

PostPosted: May 8, 2006 @ 10:24am
by edge
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

PostPosted: May 9, 2006 @ 1:04pm
by Nic-Gun
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.

PostPosted: May 9, 2006 @ 1:07pm
by Nic-Gun
correction.. it worked alright. i forgot to add the http:// in front of it. but the tutorial is still unaccessable..

PostPosted: May 9, 2006 @ 1:14pm
by edge
Yes, we're currently busy upgrading the server hosting www.edgelib.com. You can expect the site to be up shortly.

PostPosted: May 11, 2006 @ 4:49am
by Nic-Gun
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?

PostPosted: May 11, 2006 @ 9:23am
by edge

PostPosted: May 12, 2006 @ 1:27pm
by Nic-Gun
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?

PostPosted: May 12, 2006 @ 2:49pm
by edge
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

PostPosted: May 12, 2006 @ 10:06pm
by Presto

PostPosted: May 13, 2006 @ 4:42am
by Nic-Gun

PostPosted: May 13, 2006 @ 11:50am
by Petre

PostPosted: May 13, 2006 @ 3:16pm
by Nic-Gun

PostPosted: May 14, 2006 @ 12:45pm
by edge

PostPosted: May 16, 2006 @ 2:35am
by Nic-Gun
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.