Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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");
like image 527
Tommy Avatar asked Dec 12 '25 07:12

Tommy


1 Answers

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

like image 179
Marcin Deptuła Avatar answered Dec 13 '25 20:12

Marcin Deptuła



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!