CoH FOE v 0.5 BETA released!


AmazingMOO

 

Posted

[ QUOTE ]
Crap, I just checked out the new boards again, and it looks like they already have a built in WYSIWYG editor.

Would anyone STILL be interested in an "offline" forum editor if you already had a full editor like that online? I would like to see if there would be any interest... if not, why bother?

[/ QUOTE ]

Well the draw to a program like yours is that forum connectivity issues won't cause the post to go bye bye mid-draft. You will always have a copy on hand to try again if the internet eats your post - so go for it


 

Posted

[ QUOTE ]
[ QUOTE ]
I don't use Vista, I use XP, and I'm using Visual Basic 5. I have no idea how I would implement this.

[/ QUOTE ]

This article might help http://support.microsoft.com/kb/252652

[/ QUOTE ]

I searched the web for some examples of this function being used, and it made my head explode. I am not good enough of a programmer to figure out how to implement this. Isn't there some sort of easier, one-line bit of code that will determine the user's application data folder? The examples that I found seemed all WAY too complex to perform what should be such a simple function.


 

Posted

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
I don't use Vista, I use XP, and I'm using Visual Basic 5. I have no idea how I would implement this.

[/ QUOTE ]

This article might help http://support.microsoft.com/kb/252652

[/ QUOTE ]

I searched the web for some examples of this function being used, and it made my head explode. I am not good enough of a programmer to figure out how to implement this. Isn't there some sort of easier, one-line bit of code that will determine the user's application data folder? The examples that I found seemed all WAY too complex to perform what should be such a simple function.

[/ QUOTE ]

You can use the GetEnvironmentVariable function. Here is a site with sample code: http://allapi.mentalis.org/apilist/G...Variable.shtml

The easiest way for you would be to copy the function code and just paste it into either your code module, or in the beginning of your form code (before the form declarations).

After inserting the function declaration(s) just call it like this:
<font class="small">Code:[/color]<hr /><pre>
'Make sure to declare the variable for the AppData path
Dim strAppDataPath as String

strAppDataPath = GetEnvironmentVar("APPDATA")
</pre><hr />
Then, insert the strAppDataPath variable wherever your code is calling to save to/read from the configuration file.

In the .NET versions of Visual Studio, there are much easier methods of determining this information - even VB 6 has better methods if I recall properly (I think all you have to do is use the Envir namespace and the Expand sub space to get it) VB 5 takes more code than really necessary (IMO) but that was the way it was done in the day

(I remember having to code functions for things that are taken care of with a simple declaration now)