sys32 Posted December 19, 2002 Share Posted December 19, 2002 does anyone have a link to a really good ini tutorial? or would someone like to post in detail how to use them. thanks Link to comment Share on other sites More sharing options...
0 neowin_hipster Posted December 19, 2002 Share Posted December 19, 2002 well in windows there are a bunch of .ini files but you're more likely looking for a reference than a tutorial. If you want to use one in a program your writting, its simply a text file. Nothing more. Link to comment Share on other sites More sharing options...
0 sys32 Posted December 19, 2002 Author Share Posted December 19, 2002 :blush: i dont know how to use strings and text files very well :blink: Link to comment Share on other sites More sharing options...
0 Oogle Posted December 19, 2002 Share Posted December 19, 2002 Well, there is an Win32 API to generate these file types for you although MS recommends you use the registry (yeah, right...). Here's a list I found at msdn.microsoft.com GetPrivateProfileInt GetPrivateProfileString GetPrivateProfileSection GetPrivateProfileSectionNames GetPrivateProfileStruct WritePrivateProfileString WritePrivateProfileSection WritePrivateProfileStruct Link to comment Share on other sites More sharing options...
0 aemon Posted December 19, 2002 Share Posted December 19, 2002 System32, On one hand you are working on a new project that is logon security related because Win98 is not feature rich enough but on the other you admit you are not very good with strings and text files? I don't think I am going to wanting to trust my network to your new secure login. Link to comment Share on other sites More sharing options...
0 sys32 Posted December 20, 2002 Author Share Posted December 20, 2002 System32, On one hand you are working on a new project that is logon security related because Win98 is not feature rich enough but on the other you admit you are not very good with strings and text files? I don't think I am going to wanting to trust my network to your new secure login. thats exactly why i need help with the project. Link to comment Share on other sites More sharing options...
0 sys32 Posted December 20, 2002 Author Share Posted December 20, 2002 Does anyone know of an ocx control to manipulate ini files that is simple and straightforward? Link to comment Share on other sites More sharing options...
0 aemon Posted December 20, 2002 Share Posted December 20, 2002 You really don't want to try very hard at this. A few posts back you were given tha API functions to handle ALL the INI issues you could ever have. I'd write you an OCX but I couldn't make it any easier than you just making the API calls yourself. Here is a link to an INI Tutorial written by a guy named VBScript. INI Tutorial Get that and go through the code. I really think it is great that you want to learn to program in VB but you can't learn unless YOU do the work. If others do it for you, you aren't really going to learn. Good luck. Link to comment Share on other sites More sharing options...
0 thingsforjason Posted December 20, 2002 Share Posted December 20, 2002 heh, a guy named VBScript? :blink: http://www.vbexplorer.com/VBExplorer/focus...ni_tutorial.asp there's another tutorial Link to comment Share on other sites More sharing options...
0 aemon Posted December 20, 2002 Share Posted December 20, 2002 That is a pretty good tutorial site. I hope system32 checks it out. As for the guy named VBScript, he actually writes some pretty good VB code. Not the best but worthy of the credit for the sample project I offered. Link to comment Share on other sites More sharing options...
0 sys32 Posted December 20, 2002 Author Share Posted December 20, 2002 thanks a bunch ixis and thingsforjason! Both of those were really great resources. I am going to start this project now! Link to comment Share on other sites More sharing options...
0 Lomex Posted December 20, 2002 Share Posted December 20, 2002 I would also look into replacing ini files with xml files.. Just my two cents Link to comment Share on other sites More sharing options...
0 sys32 Posted December 20, 2002 Author Share Posted December 20, 2002 :blink: i don't think you can do this with visual studio 6. correct me if i am wrong. Link to comment Share on other sites More sharing options...
0 aemon Posted December 20, 2002 Share Posted December 20, 2002 Sure you can do it. There is limited XML support by using MSXML 4.0 but you will probably be better off creating your own parser for something as small as an INI replacement. Link to comment Share on other sites More sharing options...
0 sys32 Posted December 20, 2002 Author Share Posted December 20, 2002 hmm i'm not really sure how i would do this... ...will experiment a little. Link to comment Share on other sites More sharing options...
0 cub-x Posted December 20, 2002 Share Posted December 20, 2002 I might step onto someones foot right now, but here it goes anyway: Stop using VB and start using Delphi (Delphi for .Net coming soon, don't worry).. It includes parsing ini files (using Win API) since ages.. And you will also benefit from thinking in object oriented programming, which lacks in VB; because it was never meant to be an OOP language (excluding VB.NET, because that's more like OOP using classes and inheritence and polymorphism etc etc). Is Delphi hard to use/learn; no.. Go see www.borland.com and get your personal edition right away. Unless you want to stay with a _basic_ environment ;) I just think it's better/easier to learn Delphi than to learn a language where you gotta learn OOP later when you 'upgrade' to VB.NET Link to comment Share on other sites More sharing options...
0 aemon Posted December 20, 2002 Share Posted December 20, 2002 The problem with Delphi (and this is the only problem really) is that there are far more employment opportunities for Visual Basic programmers than for Delphi programmers. VB coders are usually good for knowing more than just straight VB. They are usually capable with SQL, ASP and now VB.NET and C# as well. These extra skills even further the opportunities for a MS based developer. Link to comment Share on other sites More sharing options...
0 neowin_hipster Posted December 20, 2002 Share Posted December 20, 2002 If you know c++ or java you can pretty much learn any other language out there fairly easily and rapidly. Most of the learning is devoted to API's and libraries. Link to comment Share on other sites More sharing options...
0 aemon Posted December 20, 2002 Share Posted December 20, 2002 Very true however I would argue that the learning curve from zero knowledge in any language to being a productive member of a C++ development team is considerable. This is why even in todays market, C++ programmers demand higher pay. In my experience, Java really only gets you the goods if you couple it with solid web or DB experience. Both of those can be hard for a beginner due to several obvious issues including having access to an enterprise scale DB. MySQL doesn't count in this area because I am talking of real development using Oracle (or Sybase etc.) for a backend in then enterprise setting. I rarely hire a developer that only has MySQL or Access experience. Then again, my team works exclusivly on larger enterprise scale solutions. And to point out that VB6.0 is a viable tool, I have been directly responsible for the deployment of 3 mission-critical enterprise apps that were developed exclusivly in VB6.0. These are applications that span areas including national retail point of sale, semi-conductor fabrication and manufacturing and customer relation managment. These examples are not a testament of my skills but to point out what can be done using a language that is beaten up as being inferior. Is VB the end all language, not even close, but when used to its fullest it is a robust development tool that can get the job done. Link to comment Share on other sites More sharing options...
Question
sys32
does anyone have a link to a really good ini tutorial? or would someone like to post in detail how to use them.
thanks
Link to comment
Share on other sites
18 answers to this question
Recommended Posts