| | |
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 beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





