NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 25 26 27 28 29 … 93 Next »
INI, Text File Reader...

 
  • 0 Vote(s) - 0 Average
INI, Text File Reader...
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#11
2009-02-03, 05:52 PM
I updated the sample code on the previous page to provide a working sample. You will need to reference the IsoCodes.dll as well as the XmlTv.dll
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#12
2009-02-03, 07:53 PM
whurlston Wrote:I updated the sample code on the previous page to provide a working sample. You will need to reference the IsoCodes.dll as well as the XmlTv.dll

Well well well.. Wow, is that fast, or what?...!!!!

I was doing so work with strong typing last night... I have a question to you are anyone...

If I have an XML file that has 10 ChildNodes, but I only need two so that I can then reference something else, is it a bad thing to snag information from all 10 childnodes? Is it a waste of resources...?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#13
2009-02-03, 08:56 PM
Have you looked at nini on sourceforge. I have been toying with the idea of rewriting gamezone to use it for all the configuration files I use and create. It supports almost all types.

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#14
2009-02-03, 09:21 PM
I don't think that anything you do will consume much resources and once your app exits, the resources will be freed anyway.
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#15
2009-02-04, 03:57 AM
zehd Wrote:Just so I'm not reinventing the wheel...

I'm getting in deep into VB.net ( I have Visual Studio, and I'm learning to read C# too, but that's just so I can finally understand the code examples...)

I'd like to be able to read and write INI files and other text files used by other 3rd part programs like Comskip.

I would have thought there were a set of read and write "ProfileString" functions built into VB for reading and writing ini files. If not, you can call the external functions built into kernel32.dll. Here's an example of doing that in C#:
http://www.java2s.com/Tutorial/CSharp/05...String.htm
http://www.java2s.com/Tutorial/CSharp/05...String.htm

Oh, here's a VB.net example of doing the same.
http://www.codeguru.com/forum/archive/in...89920.html
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#16
2009-02-04, 05:02 AM
I forgot that I have a C# example of reading and writing ini files. By device ini manager does this. I posted the source somewhere here on the forum. Thanks for getting me back on track wtg, Frank threw me off with the whole moving to .Net thing. Wink
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#17
2009-02-04, 06:01 PM
wtg Wrote:I would have thought there were a set of read and write "ProfileString" functions built into VB for reading and writing ini files. If not, you can call the external functions built into kernel32.dll. Here's an example of doing that in C#:
http://www.java2s.com/Tutorial/CSharp/05...String.htm
http://www.java2s.com/Tutorial/CSharp/05...String.htm

Oh, here's a VB.net example of doing the same.
http://www.codeguru.com/forum/archive/in...89920.html

I found that. The problem is that some programs, like Comskip, are actually hash tables, and don't use the [Section] format... The getprivateprofile doesn't work when there are sections, and really gets fouled by remarks.

It's all good now though. My routines are slick, lean and quick (as I discovered when I lost the source to ZProcess version1, when forced to start over, generally things are better!!!)

And I'm looking into nini
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#18
2009-02-04, 06:05 PM
whurlston Wrote:Frank threw me off with the whole moving to .Net thing. Wink

It's sooooo exciting, isn't it!
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#19
2009-02-04, 06:09 PM
idkpmiller Wrote:Have you looked at nini on sourceforge. I have been toying with the idea of rewriting gamezone to use it for all the configuration files I use and create. It supports almost all types.

Cheers

I'm looking into it. Looks cool. Haven't found the license yet. I can't quite tell whether I can use it in closed source, possible donation-ware...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#20
2009-02-04, 10:08 PM
zehd Wrote:I'm looking into it. Looks cool. Haven't found the license yet. I can't quite tell whether I can use it in closed source, possible donation-ware...
It does look very promising - It uses the MIT Licence which looks quite flexible - attached is from the download...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (7): « Previous 1 2 3 4 5 … 7 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  How Does "Use S01E01 File naming format if possible" work puck64 7 5,337 2015-08-25, 10:21 AM
Last Post: puck64
  NEWA - using buffer file produced by /public/VLCService?Channel= bgowland 5 2,810 2014-01-02, 06:36 AM
Last Post: bgowland
  Is the input file for pvrx2.exe -import unique to NextPVR? spinnaker 1 1,771 2013-10-08, 02:25 AM
Last Post: sub
  Accessing music file metadata in C# bgowland 6 3,299 2013-01-26, 05:14 AM
Last Post: bgowland
  RSS Reader tmrt 51 18,213 2011-02-21, 07:22 AM
Last Post: tmrt
  File browsing - a big ask imilne 3 1,999 2010-11-04, 09:03 PM
Last Post: imilne
  Run Multiple File Conversions On Your 4 Core -Burn Your Processor luttrell1962 12 4,579 2010-03-25, 07:33 AM
Last Post: luttrell1962
  Determining text size and available space Ommina 2 1,663 2010-03-15, 05:34 AM
Last Post: sub
  Using Windows file system shortcuts ACTCMS 0 1,808 2010-01-26, 11:45 PM
Last Post: ACTCMS
  Not looking in correct location for skin file scb147 4 2,219 2009-07-29, 06:26 PM
Last Post: scb147

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode