Autor Beitrag
termodox
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Sa 07.06.08 13:34 
hallo, kann mir jemand mit c++ helfen ))

also das " idhttp.get('http://google.de/search.php?'+edit1.text); " in c++ bitte^^


Zuletzt bearbeitet von termodox am Sa 07.06.08 16:32, insgesamt 1-mal bearbeitet
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 07.06.08 13:36 
Hallo!

Gib Deinem Thread doch bitte einen Titel, der was mit der Frage zu tun hat. Danke! :-)

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 07.06.08 14:04 
Du solltest dir ersteinmal die grundlegende Syntax von C++ ansehen, dann würdest du das auch selbst hinbekommen:
ausblenden Quelltext
1:
IdHttp1->Get("http://google.de/search.php?" + Edit1->Text);					
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Sa 07.06.08 14:09 
URLDownloadToFile sollte das gewünschte liefern.
msdn.microsoft.com/e...ms775123(VS.85).aspx
Musch wohl die UrlMon.h einbinden dass du die funktion nutzen kannst.
Wie man sie benutzt wird ähnlich wie bei Delphi sein, nutz einfach die SuFu dafür.

MfG, Fighter#1

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Sa 07.06.08 14:11 
user profile iconjaenicke hat folgendes geschrieben:
Du solltest dir ersteinmal die grundlegende Syntax von C++ ansehen, dann würdest du das auch selbst hinbekommen:
ausblenden Quelltext
1:
IdHttp1->Get("http://google.de/search.php?" + Edit1->Text);					


=O Die Indys sind auch für C++ erhältlich ? :oops: wusst ich garnich *g*

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 07.06.08 14:12 
Sofern es sich um den C++-Builder handelt natürlich nur. Und da ich das so verstanden habe, dass er Probleme mit der Syntax hat, bin ich davon ausgegangen, dass er den auch benutzt.
termodox Threadstarter
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Sa 07.06.08 16:36 
wow correct, ich habe C++ builder =)

habe jetzt idhttp auf die form geworfen dann ein edit und ein button, den Code eingefügt aber es geht nicht ...

er sagt E2451 Undefined symbol 'iDHttp1'
er sagt E2451 Undefined symbol 'edit1'

und über den Object Inspector ist ein Fenster wo alle Objecte angezeigt werden, in Delphi werden dort alle angezeigt ..label edits buttons...
doch jetzt in C++ sehe ich nur Form1 Object und Tform1::Button1Click

vll deswegen, muss man die manuel hinzufügen oder wie macht man das?

danke
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 07.06.08 16:51 
In C++ Groß- und Kleinschreibung beachten!

iDHttp1 ==> IdHttp1
termodox Threadstarter
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Sa 07.06.08 17:12 
hat nicht geholfen...schreibt trotzdem den fehler hin, jetzt aber in der richtigen Groß-Kleinschreibung...

moment gucke Unit.h


Zuletzt bearbeitet von termodox am Sa 07.06.08 17:17, insgesamt 1-mal bearbeitet
termodox Threadstarter
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Sa 07.06.08 17:15 
ich habe noch ein Unit.h mit

ausblenden volle Höhe C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdHTTP.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:  // IDE-managed Components
  TEdit *Edit1;
  TEdit *Edit2;
  TButton *Button1;
  TIdHTTP *IdHTTP1;
  void __fastcall Button1Click(TObject *Sender);
private:  // User declarations
public:    // User declarations
  __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------

#endif



EDIT: es geht! habe jetzt IdHTTP1 geschreiben in der Großschreibung und es ging, vielen dank!
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 07.06.08 17:24 
Genau und dasselbe mit Edit1. Überall in C(++)!
termodox Threadstarter
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Sa 07.06.08 17:56 
Jawohl, danke...aber ich habe jetzt ein anderes Problem...ich mache ambesten neues Thema auf...denn wenn ich mein compliertes programm
bei mir starte geht es...
ich habe es dem Bekannten über icq verschickt. (Project1.exe)
er wollte es öffnen und dann kamm ein Fehler
"
This application has failed to start becouse vcl100.bpl was not found.
Re-installing the application may fix this problem.

"

was ist da falsch?
Danke
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 07.06.08 18:07 
user profile icontermodox hat folgendes geschrieben:
Jawohl, danke...aber ich habe jetzt ein anderes Problem...ich mache ambesten neues Thema auf...

Richtig, daher mache ich hier zu. :-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Dieses Thema ist gesperrt, Du kannst keine Beiträge editieren oder beantworten.

Das Thema wurde von einem Team-Mitglied geschlossen. Wenn du mit der Schließung des Themas nicht einverstanden bist, kontaktiere bitte das Team.