Click here to Skip to main content
15,900,815 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSQL Image Project Pin
bapu288922-May-08 9:29
bapu288922-May-08 9:29 
AnswerRe: SQL Image Project Pin
Christian Graus22-May-08 16:44
protectorChristian Graus22-May-08 16:44 
QuestionUpdate/change Database field... Pin
CCG322-May-08 9:11
CCG322-May-08 9:11 
AnswerRe: Update/change Database field... Pin
jzonthemtn22-May-08 16:46
jzonthemtn22-May-08 16:46 
QuestionAlternate background color for column with TableStyle / GridColumnStyle Pin
Johan Hakkesteegt22-May-08 7:57
Johan Hakkesteegt22-May-08 7:57 
AnswerRe: Alternate background color for column with TableStyle / GridColumnStyle Pin
Smithers-Jones22-May-08 12:08
Smithers-Jones22-May-08 12:08 
GeneralRe: Alternate background color for column with TableStyle / GridColumnStyle Pin
Johan Hakkesteegt23-May-08 0:02
Johan Hakkesteegt23-May-08 0:02 
QuestionError using GetPrivateProfileString and GetPrivateProfileSectionNames Pin
DQNOK22-May-08 5:43
professionalDQNOK22-May-08 5:43 
I've inherited a large VB6 project (with zero chance of moving it to VB.NET) that I am slowly refactoring, beginning with reading the .ini files. Never mind the way it currently works, I just want to read all the section names, then within each section name, read all the keys and values.

According to the documentation on MSDN, this should be simple. The GetPrivateProfileSectionNames function should give me the section names, then GetPrivateProfileString (with a null for key-name) should give me the list of key/value pairs within the specified section. But they're not working.

When the GetPrivateProfileSectionNames wouldn't work, I tried switching to GetPrivateProfileString and passing it a null for the section name (which according to MSDN should do basically the same thing as GetPrivateProfileSectionNames). Again, no luck.

I could copy all the declarations and usages here (and will if I need to), but was hoping someone else may have experienced the same thing and already recognizes the symptoms and knows the answer.

Any help appreciated.

David
---------
Empirical studies indicate that 20% of the people drink 80% of the beer. With C++ developers, the rule is that 80% of the developers understand at most 20% of the language. It is not the same 20% for different people, so don't count on them to understand each other's code.
http://yosefk.com/c++fqa/picture.html#fqa-6.6

---------

QuestionZooming to a doubleclicked point in a picturebox Pin
bigbird7022-May-08 5:10
bigbird7022-May-08 5:10 
AnswerRe: Zooming to a doubleclicked point in a picturebox Pin
jzonthemtn22-May-08 16:38
jzonthemtn22-May-08 16:38 
GeneralRe: Zooming to a doubleclicked point in a picturebox Pin
bigbird7022-May-08 21:27
bigbird7022-May-08 21:27 
QuestionUnable to generate a temporary class (result=1). Pin
C.Shivashankar22-May-08 3:39
C.Shivashankar22-May-08 3:39 
AnswerRe: Unable to generate a temporary class (result=1). Pin
Member 9020303-Nov-09 19:55
Member 9020303-Nov-09 19:55 
QuestionAnyone know a solution? Pin
farzadmf22-May-08 2:39
farzadmf22-May-08 2:39 
AnswerRe: Anyone know a solution? Pin
Christian Graus22-May-08 2:48
protectorChristian Graus22-May-08 2:48 
QuestionTimeDate..... Pin
Subjugate22-May-08 0:03
Subjugate22-May-08 0:03 
AnswerRe: TimeDate..... Pin
helelark12322-May-08 0:15
helelark12322-May-08 0:15 
GeneralRe: TimeDate..... Pin
Subjugate22-May-08 2:36
Subjugate22-May-08 2:36 
GeneralRe: TimeDate..... Pin
Christian Graus22-May-08 2:50
protectorChristian Graus22-May-08 2:50 
GeneralRe: TimeDate..... Pin
Subjugate22-May-08 17:01
Subjugate22-May-08 17:01 
GeneralRe: TimeDate..... Pin
Jamal Abdul Nasir22-May-08 20:45
Jamal Abdul Nasir22-May-08 20:45 
QuestionHow to handle the callback function of VBA in Excel? Pin
Bill9421-May-08 20:43
Bill9421-May-08 20:43 
AnswerRe: How to handle the callback function of VBA in Excel? Pin
DFPercush5-Apr-10 10:40
DFPercush5-Apr-10 10:40 
QuestionDate value... Pin
Jamal Abdul Nasir21-May-08 20:41
Jamal Abdul Nasir21-May-08 20:41 
AnswerRe: Date value... Pin
Ashfield21-May-08 21:23
Ashfield21-May-08 21:23 

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.