OMG... I can't believe how much I have forgotten in the last few years...
How do you merge 2 strings together???
Or add a number to the end of a string...?
such as in VB you could say...
But this does not work in C++...
BTW, I am using VC++ .Net 2005 (express)
I tried to cast it to a string, but it says int can not be cast to a string...?
String(treeView1->Nodes->Count + 1)
or
(String)(treeView1->Nodes->Count + 1)
I know I will probably have to get a big DUH!!! stamp on my forehead when I see the answer, but I will give a star anyways ;-)
Thanks in advance,
Josh
Have Fun, Be Young... Code BASIC
-Josh
PROGRAMMER:
Red-eyed, mumbling mammal capable of conversing with inanimate objects.
How do you merge 2 strings together???
Or add a number to the end of a string...?
such as in VB you could say...
Code:
treeView1.SelectedNode = treeView1.Nodes.Add([b]"Test" & (treeView1.Nodes.Count + 1)[/b])
But this does not work in C++...
Code:
treeView1->SelectedNode = treeView1->Nodes->Add([b]"Test" + (treeView1->Nodes->Count + 1)[/b]);
BTW, I am using VC++ .Net 2005 (express)
I tried to cast it to a string, but it says int can not be cast to a string...?
String(treeView1->Nodes->Count + 1)
or
(String)(treeView1->Nodes->Count + 1)
I know I will probably have to get a big DUH!!! stamp on my forehead when I see the answer, but I will give a star anyways ;-)
Thanks in advance,
Josh
Have Fun, Be Young... Code BASIC
-Josh

PROGRAMMER: