Click here to Skip to main content
16,012,082 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeView/ListView item selection and context menu Pin
Heath Stewart18-Oct-04 6:41
protectorHeath Stewart18-Oct-04 6:41 
Generalcapturing any window in ur application Pin
Member 143169617-Oct-04 21:18
Member 143169617-Oct-04 21:18 
GeneralRe: capturing any window in ur application Pin
Heath Stewart18-Oct-04 6:32
protectorHeath Stewart18-Oct-04 6:32 
GeneralSending a string to Crystal Report Pin
myNameIsRon17-Oct-04 21:06
myNameIsRon17-Oct-04 21:06 
GeneralRe: trying to write to a log file in destructor Pin
Colin Angus Mackay17-Oct-04 20:56
Colin Angus Mackay17-Oct-04 20:56 
GeneralRe: trying to write to a log file in destructor Pin
Gavin Jeffrey17-Oct-04 21:41
Gavin Jeffrey17-Oct-04 21:41 
GeneralRe: trying to write to a log file in destructor Pin
Colin Angus Mackay17-Oct-04 23:01
Colin Angus Mackay17-Oct-04 23:01 
GeneralGetting all the section names from an ini file Pin
Member 64506717-Oct-04 20:32
Member 64506717-Oct-04 20:32 
Hi,
I've used the following code to get all the section names from an ini file. But whats happening is, am getting only one section name. But the documentation for 'GetPrivateProfileSectionNames' says that that first parameter will contain a "Pointer to a buffer that receives the section names associated with the named file. The buffer is filled with one or more null-terminated strings; the last string is followed by a second null character."

The following is the code that i've used.

//--------------------------------------------------------------------------
StringBuilder temp = new StringBuilder(8192);
int nRetValue = GetPrivateProfileSectionNames(temp, 8192, m_strIniFilePath);

string strSectionNames = temp.ToString();
string[] strArrSectionNames = strSectionNames.Split(null);
//--------------------------------------------------------------------------

Any help would be greatly appreciated.


Thanks and Regards
Vikram Attiganal
GeneralRe: Getting all the section names from an ini file Pin
Colin Angus Mackay17-Oct-04 20:50
Colin Angus Mackay17-Oct-04 20:50 
GeneralRe: Getting all the section names from an ini file Pin
Heath Stewart18-Oct-04 6:28
protectorHeath Stewart18-Oct-04 6:28 
QuestionHow my remote sever popup information Pin
ChandruIT17-Oct-04 20:02
ChandruIT17-Oct-04 20:02 
AnswerRe: How my remote sever popup information Pin
afinnell18-Oct-04 5:57
afinnell18-Oct-04 5:57 
Questionhow to rread a line from a txt file to an array Pin
tom_dx17-Oct-04 10:20
tom_dx17-Oct-04 10:20 
AnswerRe: how to rread a line from a txt file to an array Pin
Kiran Satish17-Oct-04 10:32
Kiran Satish17-Oct-04 10:32 
GeneralRe: how to rread a line from a txt file to an array Pin
Christian Graus17-Oct-04 10:53
protectorChristian Graus17-Oct-04 10:53 
GeneralRe: how to rread a line from a txt file to an array Pin
Kiran Satish17-Oct-04 10:56
Kiran Satish17-Oct-04 10:56 
AnswerRe: how to rread a line from a txt file to an array Pin
Christian Graus17-Oct-04 10:54
protectorChristian Graus17-Oct-04 10:54 
GeneralRe: how to rread a line from a txt file to an array Pin
tom_dx17-Oct-04 12:52
tom_dx17-Oct-04 12:52 
GeneralRe: how to rread a line from a txt file to an array Pin
Christian Graus17-Oct-04 13:06
protectorChristian Graus17-Oct-04 13:06 
GeneralRe: how to rread a line from a txt file to an array Pin
tom_dx17-Oct-04 13:48
tom_dx17-Oct-04 13:48 
AnswerRe: how to rread a line from a txt file to an array Pin
Rob Tomson17-Oct-04 23:20
Rob Tomson17-Oct-04 23:20 
GeneralRe: how to rread a line from a txt file to an array Pin
leppie18-Oct-04 0:31
leppie18-Oct-04 0:31 
GeneralRe: how to rread a line from a txt file to an array Pin
tom_dx19-Oct-04 13:37
tom_dx19-Oct-04 13:37 
AnswerRe: how to rread a line from a txt file to an array Pin
Anonymous20-Oct-04 7:01
Anonymous20-Oct-04 7:01 
Questionlistview with combobox as subitem? Pin
vista2717-Oct-04 9:04
vista2717-Oct-04 9:04 

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.