I've got a combobox that I want to list a group of names that are stored in an external document (txt file).

I map the file and post it in the combobox .

invoke GetDlgItem,hWnd,IDC_Serverlist
invoke SendMessage,eax,CB_ADDSTRING,0,MapVlist

But it is listed as one big line ...
(Jhonn bill Ted ect)



how to fix that ? do I have to read every single line of the document and post it in the combobox ?

A sample of the document:
Jhon
Bill
Ted
ect

I want to import that list in the combobox
Posted on 2004-09-10 07:41:28 by Gangleri
after you load the file into memory you need to check for the end of line 0Dh,0Ah for each seperate line. as you are searching for the end of line you move the info into a buffer and once the end of line is reached you set the item in the combobox then reset your buffer back to 0 starting over with next line.
Posted on 2004-09-10 09:27:40 by smurf
I know it will be something of that sort ....
Posted on 2004-09-10 13:36:15 by Gangleri