Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDynamic array of String class Pin
priyank_ldce10-Nov-06 2:09
priyank_ldce10-Nov-06 2:09 
AnswerRe: Dynamic array of String class Pin
toxcct10-Nov-06 2:14
toxcct10-Nov-06 2:14 
GeneralRe: Dynamic array of String class [modified] Pin
Mr.Brainley10-Nov-06 2:23
Mr.Brainley10-Nov-06 2:23 
GeneralRe: Dynamic array of String class Pin
David Crow10-Nov-06 2:25
David Crow10-Nov-06 2:25 
GeneralRe: Dynamic array of String class Pin
Mr.Brainley10-Nov-06 2:31
Mr.Brainley10-Nov-06 2:31 
GeneralRe: Dynamic array of String class Pin
priyank_ldce10-Nov-06 3:40
priyank_ldce10-Nov-06 3:40 
GeneralRe: Dynamic array of String class Pin
David Crow10-Nov-06 3:48
David Crow10-Nov-06 3:48 
GeneralRe: Dynamic array of String class Pin
priyank_ldce10-Nov-06 3:53
priyank_ldce10-Nov-06 3:53 
DavidCrow wrote:
How about:


vector<string*> strArr;strArr.push_back(new String("string1"));strArr.push_back(new String("string2"));


I tried it. It gives same error Frown | :( I am writing full error message here.

error C2440: '=' : cannot convert from 'System::String __gc *__gc * ' to 'System::String __gc ** '
        Cannot convert a managed type to an unmanaged type
        C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(579) : while compiling class-template member function 'void std::vector<_Ty>::push_back(System::String __gc *const __gc & )'
        with
        [
            _Ty=System::String __gc *
        ]
        eAssessment.cpp(20) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
        with
        [
            _Ty=System::String __gc *
        ]


And this is under push_back methode.
GeneralRe: Dynamic array of String class Pin
David Crow10-Nov-06 4:00
David Crow10-Nov-06 4:00 
GeneralRe: Dynamic array of String class Pin
priyank_ldce10-Nov-06 4:04
priyank_ldce10-Nov-06 4:04 
GeneralRe: Dynamic array of String class Pin
Mark Salsbery10-Nov-06 4:50
Mark Salsbery10-Nov-06 4:50 
QuestionHow to use CreateProcessAsUser Pin
StefanKittel10-Nov-06 2:06
StefanKittel10-Nov-06 2:06 
Questionhi all !!! Pin
Bravoone_200610-Nov-06 1:20
Bravoone_200610-Nov-06 1:20 
AnswerRe: hi all !!! Pin
_AnsHUMAN_ 10-Nov-06 2:22
_AnsHUMAN_ 10-Nov-06 2:22 
AnswerRe: hi all !!! Pin
David Crow10-Nov-06 2:23
David Crow10-Nov-06 2:23 
AnswerRe: hi all !!! Pin
Hamid_RT11-Nov-06 0:26
Hamid_RT11-Nov-06 0:26 
Questionpath of the application Pin
radhika2810-Nov-06 0:29
radhika2810-Nov-06 0:29 
AnswerRe: path of the application Pin
prasad_som10-Nov-06 0:47
prasad_som10-Nov-06 0:47 
GeneralRe: path of the application Pin
radhika2810-Nov-06 1:08
radhika2810-Nov-06 1:08 
QuestionRe: path of the application Pin
prasad_som10-Nov-06 1:19
prasad_som10-Nov-06 1:19 
AnswerRe: path of the application Pin
radhika2810-Nov-06 1:27
radhika2810-Nov-06 1:27 
GeneralRe: path of the application Pin
prasad_som10-Nov-06 2:32
prasad_som10-Nov-06 2:32 
GeneralRe: path of the application Pin
David Crow10-Nov-06 2:29
David Crow10-Nov-06 2:29 
GeneralRe: path of the application Pin
prasad_som10-Nov-06 2:34
prasad_som10-Nov-06 2:34 
AnswerRe: path of the application Pin
Rage10-Nov-06 1:09
professionalRage10-Nov-06 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.