473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

single-letter typecasting macros - where defined ?

jdm
In the sample code for the SortedList class, I see the use of a string
typecasting macro consisting of a single letter "S". i.e.:

Sortedlist->Add(S"Keyval one", S"Item one");

Now I have deduced that the "S" can be replaced with (String __gc *) and the
code will compile and run just fine. But what I can't find is what exactly
Microsoft calls these macros (I have also seen "L" used the same way) and
where they are all documented. I have just spent over an hour endlessly
circling through my vs.net "help" system trying to find them with keywords
such as "typecasting macros", "string conversion", "data types",
"typecasting shortcuts", etc to no avail. Just endlessly clicking from one
link to another, only to be presented with yet another screen of Redmond
techno-gobbledygook double speak that says nothing and has no examples.

All I want to know is what all the available single-letter typecasting
macros are, and when to use them. Does such a document exist anywhere in
the millions of lines of pointless verbiage in the Microsoft .Net "Help"
System ?

Nov 16 '05 #1
3 1625
jdm
Many thanks.

"Jeff Partch" <je***@mvps.org> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
http://msdn.microsoft.com/library/de...us/vclang98/ht
ml/_pluslang_c.2b2b_.string_literals.asp http://msdn.microsoft.com/library/de...us/vcmxspec/ht
ml/vcManagedExtensionsSpec_11_2.asp --
Jeff Partch [VC++ MVP]

Nov 16 '05 #3
jdm
Yes, thank you for pointing that out. It took me awhile to realize that
they are actully format specifiers much like in the old printf() function of
yore.

"Ken Alverson" <Ke*@Alverson.net> wrote in message
news:uS*************@TK2MSFTNGP10.phx.gbl...
"jdm" <jdm1intx@DIE_SPAMBOT_DIEcharter.net> wrote in message
news:vj************@corp.supernews.com...
In the sample code for the SortedList class, I see the use of a string
typecasting macro consisting of a single letter "S". i.e.:

Sortedlist->Add(S"Keyval one", S"Item one");
Do note that things like S"string", L"string", 3.14f, 0x100L, etc are

*not* typecasting. They are actually modifiers that affect the literal value that gets used in your program. Typecasting, by contrast, is generally a runtime operation that takes an existing value (possibly a literal) and converts it into a different type.

Ken

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Dennis Plöger | last post by:
Hi all! I'm currently having some problems parsing a char array in c++. (And yes, I'm a half-newbie ;-)) Perhaps you can help me with this: #include <iostream> using std::cout; void...
5
by: Joel | last post by:
Hi, I incorporated a function in my code that whenever I use a string variable in an sql statement if the string contains a single quote it will encase it in double quotes else single quotes. ...
11
by: Thom Little | last post by:
I would like three states on an icon ... Left Click Right Click Double Click Left Click is fired at least once on a Double Click Is there a good example that shows how to determine if the...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
2
by: John Dann | last post by:
I'm retrieving some columns from a database with numeric values that fall comfortably within the range of the Single type and I'm tempted to use Single for the relevant column type in the retrieved...
13
by: Kevin Walzer | last post by:
Which of the Windows/Unix package builders for Python applications is capable of creating single-file executables? I'm thinking of: 1. py2exe 2. Mcmillan Installer/PyInstaller 3. cxfreeze ...
7
by: ashley.ward | last post by:
We have been using VB6 to develop small custom apps that access an Oracle database, in order to extend a larger product that is developed by our colleagues in Germany (who use C++ and Java). As...
3
by: Eric Layman | last post by:
Hi, I've saved data into the db by doing a replace() on single quote. Right now on data display on a datagrid, it shows double single quote. How do I make changes during run time of datagrid...
2
by: Reporter | last post by:
I got the following example from http://www.evolt.org/article/User_Friendly_Forms_in_PHP/20/60144/index.html : echo '<tr><td>First name:</td><td><input type="text" name="first_name"...
0
by: Atos | last post by:
SINGLE-LINKED LIST Let's start with the simplest kind of linked list : the single-linked list which only has one link per node. That node except from the data it contains, which might be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.