| | |
What does the underscore mean in: _("Undo")
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 27
Reputation:
Solved Threads: 2
Okay, it's been a long time since I've programmed in C++! Languages change considerably in the last 5 years or so. In reviewing some source code I often see statements like this:
obviously, I snipped out a lot of code.
My question is, what does the underscore mean in:
C++ Syntax (Toggle Plain Text)
wxString label; if (name == wxT("Undo")) { label = _("Undo");
My question is, what does the underscore mean in:
C++ Syntax (Toggle Plain Text)
_("Undo")
-Ed
MS Vista Ultimate 64-bit; Visual Studio 2008 & 2010 beta; Visual Basic; Visual C++
Asus P5E3 Deluxe w/ Intel E6850, 8 GB OCZ DDR3 PC3-12800, SAPPHIRE HD3870 GPU
MS Vista Ultimate 64-bit; Visual Studio 2008 & 2010 beta; Visual Basic; Visual C++
Asus P5E3 Deluxe w/ Intel E6850, 8 GB OCZ DDR3 PC3-12800, SAPPHIRE HD3870 GPU
_ is usually associated with gettext with deals with text localization.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Dec 2008
Posts: 27
Reputation:
Solved Threads: 2
OK, that might be enough for me to actually figure out what it is being used for here. I thought it might be some new C++ convention.
Thanks!
Thanks!
Last edited by edgar5; Sep 23rd, 2009 at 4:52 pm.
-Ed
MS Vista Ultimate 64-bit; Visual Studio 2008 & 2010 beta; Visual Basic; Visual C++
Asus P5E3 Deluxe w/ Intel E6850, 8 GB OCZ DDR3 PC3-12800, SAPPHIRE HD3870 GPU
MS Vista Ultimate 64-bit; Visual Studio 2008 & 2010 beta; Visual Basic; Visual C++
Asus P5E3 Deluxe w/ Intel E6850, 8 GB OCZ DDR3 PC3-12800, SAPPHIRE HD3870 GPU
![]() |
Similar Threads
- News Story: Get Out of Trouble With Gmail's New "Undo Send" Feature (Pay-Per-Click Advertising)
- VB6 - Make Tab key also an "Enter" key. (Visual Basic 4 / 5 / 6)
- Calling a Javascript Function in InnerHTML (JavaScript / DHTML / AJAX)
- Wont reboot after partition made "active" (Troubleshooting Dead Machines)
- Stressful issue in viewing "secure" websites (Windows NT / 2000 / XP)
- google "keyword" question (Search Engine Optimization)
- Reset XP to as before Gates "Upgraded" it! (Windows NT / 2000 / XP)
- I need special stuff in my project like system("cls") (C++)
- W32.Blaster.Worm - RPC vulnerability causes reboots in Windows NT, 2K, and XP. (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: binary and hexadecimal display
- Next Thread: question on weather i should use a templat
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linker 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 rpg sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






