| | |
Problem with CString.Format
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2008
Posts: 20
Reputation:
Solved Threads: 0
Hi friends,
Kindly help me in this...i have to print the values of input and languagepair
i tried this first
CString Add(CString input,CString languagePair)
{
CString url ;
url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= %s &langpair= %s ", input, languagePair);
}
i got error
then i tried this
CString Add(CString input,CString languagePair)
{
CString url ;
url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= {0}&langpair= {0} ", input, languagePair);
}
Thanks in advalce...sherin
Kindly help me in this...i have to print the values of input and languagepair
i tried this first
CString Add(CString input,CString languagePair)
{
CString url ;
url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= %s &langpair= %s ", input, languagePair);
}
i got error
then i tried this
CString Add(CString input,CString languagePair)
{
CString url ;
url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= {0}&langpair= {0} ", input, languagePair);
}
Thanks in advalce...sherin
•
•
•
•
Hi friends,
Kindly help me in this...i have to print the values of input and languagepair
i tried this first
CString Add(CString input,CString languagePair)
{
CString url ;
url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= %s &langpair= %s ", input, languagePair);
}
i got error
then i tried this
CString Add(CString input,CString languagePair)
{
CString url ;
url.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text= {0}&langpair= {0} ", input, languagePair);
}
Thanks in advalce...sherin
Could be little bit clear in explaining the error. i tried compiling your code and it works Perfect in my VC6.0 Compiler.
"The most important single aspect of software development is to be clear about what you are trying to build." - Bjarne Stroustrup
![]() |
Similar Threads
- Random generation of numbers - what's wrong with my code? (C++)
- Variable problem.. (C++)
- help with c program to count # of words in a string (C)
- problem with operator overloading (C++)
- How to re-organized XML file and call XML file from my software (RSS, Web Services and SOAP)
- C++ WinSNMP API: (C++)
- .exe crashing on executing output !! (C)
- CEdit boxes and mulitplication (C++)
- storing large numbers (C++)
- in need of some hw help (C++)
Other Threads in the C++ Forum
- Previous Thread: Type initialization
- Next Thread: Not reading or outputting file with no error
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





