C# utilisation api google
Bonjour,
J'ai commencé une appli très simple :
Une windows form avec un bouton chercher, lorsque je clique sur ce bouton :
Citation:
private void searchButton_Click(object sender, System.EventArgs e)
{
// Create a Google Search object
google_moniteur.GoogleSearchService s = new google_moniteur.GoogleSearchService();
try {
// Invoke the search method
google_moniteur.GoogleSearchResult r = s.doGoogleSearch(keyBox.Text, searchBox.Text,
0, 1, false, "", false, "", "", "");
// Extract the estimated number of results for the search and display it
int estResults = r.estimatedTotalResultsCount;
searchResultLabel.Text = Convert.ToString(estResults);
}
catch (System.Web.Services.Protocols.SoapException ex)
{
MessageBox.Show(ex.Message);
}
}
J'ai le message d'erreur : "the type or namespace name 'GoogleSearchService' does not exist in the namespace ''(are you missing an assembly refernce?(CS0234)
Pourtant mon fichier GoogleSearchService.cs se trouve dans mon projet.
C'est une question simple mais je bloque :(
J'ai ajouté / enlevé des réferences sans résultats....
merci d'avance pour vos réponses...