Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Setting up a WindowsAPI project Pin
Software_Developer8-May-10 20:48
Software_Developer8-May-10 20:48 
GeneralRe: Setting up a WindowsAPI project Pin
Tiberiu118-May-10 21:23
Tiberiu118-May-10 21:23 
GeneralRe: in the child window's message pump Pin
Software_Developer9-May-10 8:47
Software_Developer9-May-10 8:47 
QuestionNeed Help : My CHttpFile::SendRequest() , timeouts when sending data to google translator Pin
m_code7-May-10 20:24
m_code7-May-10 20:24 
AnswerRe: Need Help : My CHttpFile::SendRequest() , timeouts when sending data to google translator Pin
Randor 9-May-10 10:22
professional Randor 9-May-10 10:22 
GeneralRe: Need Help : My CHttpFile::SendRequest() , timeouts when sending data to google translator Pin
m_code10-May-10 18:52
m_code10-May-10 18:52 
GeneralRe: Need Help : My CHttpFile::SendRequest() , timeouts when sending data to google translator Pin
Randor 11-May-10 16:40
professional Randor 11-May-10 16:40 
GeneralRe: Need Help : My CHttpFile::SendRequest() , timeouts when sending data to google translator Pin
m_code12-May-10 4:23
m_code12-May-10 4:23 
Hi,
thanks for taking time to help me

yes the HTTP_VERB_GET work correctly

But I need to use http post because, I need to traslate some text files with my application and http connection object
could not be such long, or it would take a lot of time if I use small buffer with loop,
I had a Qt Application that implement the above matter with POST and i works Correctly Here are the codes
QString url = QString("/translate_a/t?client=t&sl=en&tl=tr");


    QHttpRequestHeader header = QHttpRequestHeader("POST", url, 1, 1);
    header.setValue("Host", "www.google.com");
    header.setValue("User-Agent", "Mozilla/5.0");
    header.setValue("Accept-Encoding", "deflate");
    header.setContentLength( text.length() );
    header.setValue("Connection", "Close");

    QByteArray ba("text=");
    ba.append( text );

    a_Http->setHost("www.google.com");
    a_Http->request(header,ba);

    a_done.exec(QEventLoop::AllEvents|QEventLoop::WaitForMoreEvents);

    QString out = QString::fromUtf8( a_Http->readAll() );

I just want to implement this in MFC,
Regards
QuestionNumber Conversion Octal to Hexadecimal Pin
djsproject7-May-10 17:49
djsproject7-May-10 17:49 
AnswerRe: Number Conversion Octal to Hexadecimal Pin
Tim Craig7-May-10 19:36
Tim Craig7-May-10 19:36 
AnswerRe: Number Conversion Octal to Hexadecimal Pin
Richard MacCutchan7-May-10 22:37
mveRichard MacCutchan7-May-10 22:37 
GeneralRe: Number Conversion Octal to Hexadecimal Pin
djsproject8-May-10 17:39
djsproject8-May-10 17:39 
GeneralRe: Number Conversion Octal to Hexadecimal Pin
Emilio Garavaglia10-May-10 5:02
Emilio Garavaglia10-May-10 5:02 
QuestionHow to get PNP Device Id Pin
Jaligamap7-May-10 9:17
Jaligamap7-May-10 9:17 
AnswerRe: How to get PNP Device Id Pin
Randor 9-May-10 10:16
professional Randor 9-May-10 10:16 
GeneralRe: How to get PNP Device Id Pin
pacchij11-May-10 10:41
pacchij11-May-10 10:41 
GeneralRe: How to get PNP Device Id Pin
Randor 11-May-10 16:47
professional Randor 11-May-10 16:47 
GeneralRe: How to get PNP Device Id Pin
pacchij12-May-10 17:08
pacchij12-May-10 17:08 
GeneralRe: How to get PNP Device Id Pin
pacchij24-May-10 8:20
pacchij24-May-10 8:20 
QuestionClipboard / Win32 Pin
Fareed Rizkalla7-May-10 8:39
Fareed Rizkalla7-May-10 8:39 
QuestionRe: Clipboard / Win32 Pin
David Crow7-May-10 9:06
David Crow7-May-10 9:06 
AnswerRe: Clipboard / Win32 Pin
Fareed Rizkalla7-May-10 10:18
Fareed Rizkalla7-May-10 10:18 
QuestionRe: Clipboard / Win32 Pin
David Crow7-May-10 10:30
David Crow7-May-10 10:30 
AnswerRe: Clipboard / Win32 Pin
Fareed Rizkalla7-May-10 14:12
Fareed Rizkalla7-May-10 14:12 
QuestionRe: Clipboard / Win32 Pin
David Crow7-May-10 17:02
David Crow7-May-10 17:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.