Click here to Skip to main content
16,014,677 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: From txt file to array...c++ .net framework Pin
Tom Larsen8-Mar-04 9:06
Tom Larsen8-Mar-04 9:06 
GeneralRe: From txt file to array...c++ .net framework Pin
David Crow8-Mar-04 9:16
David Crow8-Mar-04 9:16 
GeneralRe: From txt file to array...c++ .net framework Pin
Christian Graus8-Mar-04 10:44
protectorChristian Graus8-Mar-04 10:44 
GeneralRe: From txt file to array...c++ .net framework Pin
kfresh8-Mar-04 10:50
kfresh8-Mar-04 10:50 
GeneralRe: From txt file to array...c++ .net framework Pin
Christian Graus8-Mar-04 10:55
protectorChristian Graus8-Mar-04 10:55 
GeneralRe: From txt file to array...c++ .net framework Pin
kfresh8-Mar-04 10:57
kfresh8-Mar-04 10:57 
GeneralRe: From txt file to array...c++ .net framework Pin
Christian Graus8-Mar-04 11:05
protectorChristian Graus8-Mar-04 11:05 
GeneralINI file question Pin
Tom Wright8-Mar-04 8:57
Tom Wright8-Mar-04 8:57 
Do I have to write out the registry key in order to write out an ini file? In my code I'm using the WritePrivateProfileString API passing the section name, key and the path with file name. The file gets created but nothing is written.

In the example in the MSDN lib they show calls made to registry settings. But I just want to write out the file and not making any reg settings.

Here's a snippet of my code:
<br />
	for(int i = 0; i < NumItems; i++)<br />
	{<br />
		if (ListView_GetCheckState(m_cColumnList.GetSafeHwnd(), i))<br />
		{	<br />
			//write out the columns to the ini file<br />
			//AfxMessageBox(m_cColumnList.GetItemText(i, 0));<br />
			WritePrivateProfileString ("Columns", m_cColumnList.GetItemText (i,0), NULL,CurrentDir); <br />
		}<br />
	}<br />

All I want to do is write out the SQL column names to an ini file. So each key will be a column name with no value.

Any help would be appreciated.

Thanks

Tom Wright
tawright915@yahoo.com
GeneralRe: INI file question Pin
David Crow8-Mar-04 9:00
David Crow8-Mar-04 9:00 
GeneralRe: INI file question Pin
Tom Wright8-Mar-04 9:12
Tom Wright8-Mar-04 9:12 
GeneralRe: INI file question Pin
David Crow8-Mar-04 9:20
David Crow8-Mar-04 9:20 
GeneralRe: INI file question Pin
Tom Wright8-Mar-04 9:22
Tom Wright8-Mar-04 9:22 
GeneralRe: INI file question Pin
Tom Wright8-Mar-04 10:16
Tom Wright8-Mar-04 10:16 
GeneralRe: INI file question Pin
David Crow9-Mar-04 1:58
David Crow9-Mar-04 1:58 
GeneralRe: INI file question Pin
Navin8-Mar-04 10:57
Navin8-Mar-04 10:57 
GeneralRe: INI file question Pin
David Crow9-Mar-04 2:13
David Crow9-Mar-04 2:13 
GeneralTransferring a BMP file on network Pin
prasadddeshpande8-Mar-04 8:09
prasadddeshpande8-Mar-04 8:09 
GeneralRe: Transferring a BMP file on network Pin
Atif Mushtaq8-Mar-04 18:56
Atif Mushtaq8-Mar-04 18:56 
GeneralRe: Transferring a BMP file on network Pin
prasadddeshpande10-Mar-04 7:45
prasadddeshpande10-Mar-04 7:45 
GeneralNeed help with this..IE snapshot Pin
AWebDude8-Mar-04 8:07
AWebDude8-Mar-04 8:07 
GeneralRe: Need help with this..IE snapshot Pin
Anonymous8-Mar-04 9:40
Anonymous8-Mar-04 9:40 
GeneralRe: Need help with this..IE snapshot Pin
AWebDude8-Mar-04 10:01
AWebDude8-Mar-04 10:01 
GeneralRe: Need help with this..IE snapshot Pin
Anonymous9-Mar-04 9:37
Anonymous9-Mar-04 9:37 
GeneralMFC Dialog question Pin
Anonymous8-Mar-04 8:05
Anonymous8-Mar-04 8:05 
GeneralRe: MFC Dialog question Pin
David Crow8-Mar-04 8:51
David Crow8-Mar-04 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.