im assuming you have a cfile already?
you can read from your cfile into some sort of buffer with read() like this:
- char szBuffer[256];
-
myFile.Read( szBuffer, sizeof( szBuffer ) );
i believe you can also use buffers of different types, but it looks like you want alpha's.
then i think you might need to create a cstring from it, but you may be able to use a regular char[] as long as its null-terminated.
then to add your string to the combo box use the CComboBox::AddString() like this:
- yourCBox->AddString(szBuffer);
you may need to do something with types, if so let me know. (though i think i may be out of commission for the next 24hrs)