Initializes a new instance of the String class to the value indicated by a
specified Unicode character repeated a specified number of times.
String Constructor (Char, Int32)
Why am I getting these errors:
1) C2078: too many initializers and
2) C2440: 'initializing' : cannot convert from 'int' to 'System::String __gc
*'
when I use this constructor to initialize my string?
System::String *tRs('-',13);
--
Eric Miller 4 1425
If you look further down the documentation at the example, don't you have to
prefix your character with 'L'
System::String *tRs(L'-',13);
?
"Eric" <Er**@discussions.microsoft.com> wrote in message
news:6B**********************************@microsof t.com... Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.
String Constructor (Char, Int32)
Why am I getting these errors: 1) C2078: too many initializers and 2) C2440: 'initializing' : cannot convert from 'int' to 'System::String __gc *'
when I use this constructor to initialize my string? System::String *tRs('-',13); -- Eric Miller
In my help doc's I don't have an example and I am developing in MC++. Is
there an updated .NET 2003 help?
--
Eric Miller
"Clive Dixon" wrote: If you look further down the documentation at the example, don't you have to prefix your character with 'L'
System::String *tRs(L'-',13);
?
"Eric" <Er**@discussions.microsoft.com> wrote in message news:6B**********************************@microsof t.com... Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.
String Constructor (Char, Int32)
Why am I getting these errors: 1) C2078: too many initializers and 2) C2440: 'initializing' : cannot convert from 'int' to 'System::String __gc *'
when I use this constructor to initialize my string? System::String *tRs('-',13); -- Eric Miller
My help doc's are out of date compared to the online doc's. I saw the
example. Thanks!....
--
Eric Miller
"Clive Dixon" wrote: If you look further down the documentation at the example, don't you have to prefix your character with 'L'
System::String *tRs(L'-',13);
?
"Eric" <Er**@discussions.microsoft.com> wrote in message news:6B**********************************@microsof t.com... Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.
String Constructor (Char, Int32)
Why am I getting these errors: 1) C2078: too many initializers and 2) C2440: 'initializing' : cannot convert from 'int' to 'System::String __gc *'
when I use this constructor to initialize my string? System::String *tRs('-',13); -- Eric Miller
How do I update or syn my help with the online help doc's?
--
Eric Miller
"Clive Dixon" wrote: If you look further down the documentation at the example, don't you have to prefix your character with 'L'
System::String *tRs(L'-',13);
?
"Eric" <Er**@discussions.microsoft.com> wrote in message news:6B**********************************@microsof t.com... Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.
String Constructor (Char, Int32)
Why am I getting these errors: 1) C2078: too many initializers and 2) C2440: 'initializing' : cannot convert from 'int' to 'System::String __gc *'
when I use this constructor to initialize my string? System::String *tRs('-',13); -- Eric Miller This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew |
last post by:
I have written two classes : a String Class based on the book " C++ in
21 days " and a GenericIpClass listed below :
file GenericStringClass.h
// Generic String class
|
by: Dev |
last post by:
Hello,
In the following class definition,
the ZString destructor is invoked two times.
This crashes the code.
class ZString
{
public:
ZString(char* p)
|
by: boxim |
last post by:
Hi all,
Real easy one I think, just can't find example,
I need to create an instance of a type, but i don't have a type var, i have
a string
e.g.
string t = "MyNamespace.Class1";
I wan't...
|
by: Jon |
last post by:
I want to count the number of instances of a certain string(delimiter) in
another string. I didn't see a function to do this in the framework (if
there is, please point me to it). If not, could...
|
by: Cor |
last post by:
Hallo,
I have promised Jay B yesterday to do some tests.
The subject was a string evaluation that Jon had send in. Jay B was in doubt
what was better because there was a discussion in the C#...
|
by: Emilio |
last post by:
Question about
Shared Sub Connect(server As , message As )
Why is in square brackets?
Is it like
Shared Sub Connect(server() As String, message() As String)
|
by: PioM |
last post by:
namespace System
{
public class Text
{
public static System.Char Omin='\t',Next='
',Wciecie='\"',Zamkniecie='\"',Null='\0',Object='ÿ';
public static System.Int32 NextCharacter(System.Int32...
|
by: bob |
last post by:
Hi,
I'm looking at a legacy string class thats been in use here for a while
and I'd like to check out any options available to optimise it. I see a
couple of constructors that look dubious....
|
by: dragoncoder |
last post by:
Hello experts,
I have the following code me.
=cat mystring.h
#include<iostream>
using namespace std;
class mystring
{
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| | |