Tommy
Tommy

Reputation: 583

Please explain why there is an S at the beginning of a filepath?

Why is there an 'S' at the beginning of a filepath in the example on MSDN? I know that you can use a '@' but what does the 'S' do?

Bitmap(S"D:\\Documents and Settings\\Joe\\Pics\\myPic.bmp");

Upvotes: 3

Views: 93

Answers (1)

Marcin Deptuła
Marcin Deptuła

Reputation: 11967

It's a sample for C++/CLI, not C#. And S"" in C++/CLI means that this is managed string literal.

Check http://msdn.microsoft.com/en-us/library/ms235263.aspx

Upvotes: 7

Related Questions