@Dragonstar:
the Acc is an object of a class called Account |
so it's an object, you can't call it
class.
that cleared your intention, maybe i missed the real problem in this code, i think i see it now:
inside the loop, you assign the new letter to the strtest, this makes the
strtest contain only one letter, then you are sending
CName as an argument to
SendMessage().
you can do either of these:
replace line 10 of your code with this:
CName = Acc.Acc.GetCharacterName(x);
this will send one character in each call to
SendMessage().
another way is, you can follow this:
1 2 3 4 5
|
for (int x=1; x<ListSize; x++)
{
strtest += ob.GetCharacterName(x);
}
SendMessage(AUCharacterCombo, CB_ADDSTRING, 0, (LPARAM)strtest.c_str());
|
if this isn't what you need, maybe we could use the declaration of
account and its functions.