INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Help with Interface plug-in: saving settings?  (Read 1597 times)

MahlerFreak

  • Recent member
  • *
  • Posts: 49
Help with Interface plug-in: saving settings?
« on: August 23, 2006, 10:58:07 am »

I'm trying to figure out how to persist some settings from session to session, for an HTTP server plugin I'm working on. Does MC provide any facility for plugins to persist data? It doesn't seem to call the Save or Load interfaces in IPersistStreamInit.

I'm new to ATL, so maybe I'm missing something obvious. Or maybe I have to save settings in a file or the registry myself?

Thanks in advance for any help anyone can give me.

Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Help with Interface plug-in: saving settings?
« Reply #1 on: August 23, 2006, 12:15:50 pm »

Quote
Or maybe I have to save settings in a file or the registry myself?

Yes

I Use VB6, In It You can Use Somthing Like

    SaveSetting App.Title, "Options", "Option1(0)", Option1(0).Value

and

    Option1(0).Value = GetSetting(App.Title, "Options", "Option1(0)", True)
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

MahlerFreak

  • Recent member
  • *
  • Posts: 49
Re: Help with Interface plug-in: saving settings?
« Reply #2 on: August 23, 2006, 05:32:16 pm »

Thanks for the response. I'll just use the registry. I don't like creating extra registry entries if there's another pre-defined mechanism, but there's no real reason not to use it for the little data I want to store.

Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Help with Interface plug-in: saving settings?
« Reply #3 on: August 23, 2006, 06:59:36 pm »

Quote
I'll just use the registry.

thats where it is saved
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

MahlerFreak

  • Recent member
  • *
  • Posts: 49
Re: Help with Interface plug-in: saving settings?
« Reply #4 on: August 23, 2006, 07:06:05 pm »

thats where it is saved

Yes, I got that - my response wasn't very clear. It's up and working for me now, although it's not quite so syntactically simple in C++  :)

Logged
Pages: [1]   Go Up