Hello,
I am newbie in programming basic4ppc and I wrote a small program:
Sub Globals
'Declare the global variables here.
GoogleWeather = "http://www.google.com/ig/api?weather=+69124&hl=fr"
End Sub
Sub App_Start
Form1.Show
TextBox1.Text = DownloadXmlFile
End Sub
Sub DownloadXmlFile
ErrorLabel (errHTTP)
Reponse.New1
Demande.New1(GoogleWeather)
Reponse.Value = Demande.GetResponse
String = Reponse.GetString
Reponse.Close
Return String
errHTTP:
Reponse.Close
Msgbox(Demande.ResponseCode & ": " & Demande.ErrorMessage)
End Sub
This program works very well on my PC but as soon as I compile it for device and as soon as I execute it on my PPC, I have the message:
" An error occured on sub _main_downloadxmlfile. NullReferenceException. Continue? " Which displays on the screen.
I admit that I do not understand because there is that a single library " HTTP.dll ".
If somebody has an idea.
Thank you.
I am newbie in programming basic4ppc and I wrote a small program:
Sub Globals
'Declare the global variables here.
GoogleWeather = "http://www.google.com/ig/api?weather=+69124&hl=fr"
End Sub
Sub App_Start
Form1.Show
TextBox1.Text = DownloadXmlFile
End Sub
Sub DownloadXmlFile
ErrorLabel (errHTTP)
Reponse.New1
Demande.New1(GoogleWeather)
Reponse.Value = Demande.GetResponse
String = Reponse.GetString
Reponse.Close
Return String
errHTTP:
Reponse.Close
Msgbox(Demande.ResponseCode & ": " & Demande.ErrorMessage)
End Sub
This program works very well on my PC but as soon as I compile it for device and as soon as I execute it on my PPC, I have the message:
" An error occured on sub _main_downloadxmlfile. NullReferenceException. Continue? " Which displays on the screen.
I admit that I do not understand because there is that a single library " HTTP.dll ".
If somebody has an idea.
Thank you.
Last edited: