This topic is now archived and is closed to further replies.


ListBox -> Text File

Recommended Posts

I won't get it why this won't work! Anyone? "test.txt" );//ofn.lpstrFile );

for( i = 0; i < ListBox_GetCount( g_hList ); i++ )
	ListBox_GetText( g_hWnd, i, (LPTSTR)szListText );

	osFile << szListText << endl;
EDIT: To be more specific, there is no compilation error. I have include windows.x. I think that GetText is not used that way but i don't know. The szListText is a 100 byte buffer so theres no problem there... The file is created but only contains crap! ("...ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ...") [edited by - Enselic on January 20, 2003 11:45:16 AM]

Share this post

Link to post
Share on other sites