Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 595 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to make the gshttp.dll work with lite-c ? #317777
04/02/10 14:32
04/02/10 14:32
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
How can I make the gshttp.dll work with lite-c?

I defined the dllfunction's but it gives an error when I use HTTP_Get. It says 'Can not convert 'ARRAY' to 'FIXED';

Here is my code;

Code:
dllfunction HTTP_Create(); // Create HTTP Client  

dllfunction HTTP_Get(url_str); // HTTP GET the URL in url_str
dllfunction HTTP_Post(url_str,data_str); // HTTP POST the URL in url_str and pass data_str as the post data

dllfunction HTTP_IsWorking(); // Check to see if HTTP_Get() or HTTP_Post() are currently working

dllfunction HTTP_Results(results_str); // Fill results_str with the results from HTTP_Get() or HTTP_Post(). If there was an HTTP error, fills results_str with error number.
dllfunction HTTP_SaveToFile(filename_str); 

dllfunction HTTP_Free(); // Free HTTP Client

var dll_handle;

STRING* ResultString = "#100";

function get_servers()
{
	str_cpy(ResultString,"");
	
	if (HTTP_Create()==0) 
	{ 
		HTTP_Get("http://localhost/index.php");
		
		while(HTTP_IsWorking()==1) 
		{
	   	wait(1);
	  	}
	  	
	  	HTTP_Results(ResultString);
	  	
	  	HTTP_Free();
  	}
}



Re: How to make the gshttp.dll work with lite-c ? [Re: Toon] #317996
04/04/10 06:08
04/04/10 06:08
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
search: http://www.opserver.de/ubb7/ubbthreads.p...1&Main=3793

To all functions you have to pass a var as ID. Look into this thread above...

Last edited by GorNaKosh; 04/04/10 06:16.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1