Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / GetResource

Author
Message
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 8th Jun 2003 02:55
GetResource has been updated to get system variables (and return the string values they hold). They can also get the values of user-created variables as well.

So, you can now get the values held in TEMP,TMP,PATH etc...
Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Jun 2003 14:23
How about another suggestion?

There is an API call that you can make that will take %systemroot% within a string and expand it for you to the value held in that variable - ExpandEnvironmentStrings

I find that your library is a bit 'low-level'. Why not return strings? Why force the users to allocate memory and peek/poke it?
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 8th Jun 2003 16:07 Edited at: 8th Jun 2003 16:08
'cos it saves having to muck around with the string handling system...

The first suggestion is quite a good idea...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Jun 2003 18:55
yeah but it means the rest of us lowely useless people can't use them

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 8th Jun 2003 19:08 Edited at: 8th Jun 2003 19:09
Yes you can - I presume you've heard of the MAKE MEMORY command...
Plus, it means the DLL is easier to use in C...
In addition, putting more onus on the user to do the work (and get things right) means simpler and bug-free plug-ins...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 10th Jun 2003 23:15
I've put in the ExpandEnvironmentStrings - and yes, I'be kept the same format as the GetEnvironmentVariable command (after all, the command can fail).

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2024-04-24 11:00:07
Your offset time is: 2024-04-24 11:00:07