U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Google Translator
Re: Google Translator [message #21170 is a reply to message #20428] Wed, 06 May 2009 13:01 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1239
Registered: March 2006
Location: Italy
Senior Contributor
tojocky wrote on Wed, 18 March 2009 10:55

Thanks! Very useful example!
Maximum amount of data is 32kb. My goal is to understand how can i use progress bar! Thank you!



Hi,
I compiled your package and got the following error:

main.cpp
C:\MyApps\GoogleTranslator\main.cpp: In member function 'void GoogleTranslator::TranslateText()':
C:\MyApps\GoogleTranslator\main.cpp:80: error: no match for 'operator<<' in 'Upp::String(((const char*)"text=")) << Upp::UrlEncode(Upp::S
tring)()'
C:\upp20081\uppsrc/Web/html.h:224: note: candidates are: Upp::Htmls& Upp::operator<<(Upp::Htmls&, const char*)
C:\upp20081\uppsrc/Web/html.h:223: note: Upp::Htmls& Upp::operator<<(Upp::Htmls&, Upp::String)
C:\upp20081\uppsrc/Web/html.h:222: note: Upp::Htmls& Upp::operator<<(Upp::Htmls&, const Upp::Htmls&)
C:\upp20081\uppsrc/Web/html.h:221: note: Upp::Htmls& Upp::operator<<(Upp::Htmls&, const Upp::HtmlTag&)
C:\upp20081\uppsrc/CtrlCore/CtrlCore.h:1389: note: Upp::Ctrl* Upp::operator<<(Upp::Ctrl*, Upp::Ctrl&)
C:\upp20081\uppsrc/Core/Cbgen.h:850: note: Upp::Gate& Upp::operator<<(Upp::Gate&, Upp::Gate)
C:\upp20081\uppsrc/Core/Cbgen.h:108: note: Upp::Callback& Upp::operator<<(Upp::Callback&, Upp::Callback)
C:\upp20081\uppsrc/Core/Stream.h:611: note: Upp::Stream& Upp::operator<<(Upp::Stream&, void*)
C:\upp20081\uppsrc/Core/Stream.h:605: note: Upp::Stream& Upp::operator<<(Upp::Stream&, const void*)
C:\upp20081\uppsrc/Core/Stream.h:599: note: Upp::Stream& Upp::operator<<(Upp::Stream&, char)
C:\upp20081\uppsrc/Core/Stream.h:593: note: Upp::Stream& Upp::operator<<(Upp::Stream&, const Upp::String&)
C:\upp20081\uppsrc/Core/Stream.h:587: note: Upp::Stream& Upp::operator<<(Upp::Stream&, char*)
C:\upp20081\uppsrc/Core/Stream.h:581: note: Upp::Stream& Upp::operator<<(Upp::Stream&, const char*)
C:\upp20081\uppsrc/Core/String.h:518: note: Upp::StringBuffer& Upp::operator<<(Upp::StringBuffer&, void*)
C:\upp20081\uppsrc/Core/String.h:512: note: Upp::StringBuffer& Upp::operator<<(Upp::StringBuffer&, const void*)
C:\upp20081\uppsrc/Core/String.h:506: note: Upp::StringBuffer& Upp::operator<<(Upp::StringBuffer&, char)
C:\upp20081\uppsrc/Core/String.h:500: note: Upp::StringBuffer& Upp::operator<<(Upp::StringBuffer&, const Upp::String&)
C:\upp20081\uppsrc/Core/String.h:494: note: Upp::StringBuffer& Upp::operator<<(Upp::StringBuffer&, char*)
C:\upp20081\uppsrc/Core/String.h:488: note: Upp::StringBuffer& Upp::operator<<(Upp::StringBuffer&, const char*)
C:\upp20081\uppsrc/Core/String.h:434: note: Upp::String& Upp::operator<<(Upp::String&, void*)
C:\upp20081\uppsrc/Core/String.h:428: note: Upp::String& Upp::operator<<(Upp::String&, const void*)
C:\upp20081\uppsrc/Core/String.h:422: note: Upp::String& Upp::operator<<(Upp::String&, char)
C:\upp20081\uppsrc/Core/String.h:416: note: Upp::String& Upp::operator<<(Upp::String&, const Upp::String&)
C:\upp20081\uppsrc/Core/String.h:410: note: Upp::String& Upp::operator<<(Upp::String&, char*)
C:\upp20081\uppsrc/Core/String.h:404: note: Upp::String& Upp::operator<<(Upp::String&, const char*)
GoogleTranslator: 1 file(s) built in (0:03.34), 3344 msecs / file, duration = 3344 msecs

May it depend by the fact that I'm using the old 2008.1 and mingw?

Thanks,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Open Source Project
Next Topic: Distance - geodesic - Vincenty - very accurate
Goto Forum:
  


Current Time: Wed Jun 03 20:59:39 GMT+2 2026

Total time taken to generate the page: 0.02754 seconds