Considering PureBasic
Considering PureBasic
Hi I am considering purchasing purebasic, I am wondering how easy it would it would be to gain access to elements such as ADSI objects within Windows so that you can reset user passwords etc on Windows Servers. I am familiar with how to access these objects via VB and VBscript. Would it be difficult to create a user library, or is there an even easier way to do this? Here is a simple vbscript example for reference
Set oUser = GetObject("WinNT://machinename/username")
oUser.PasswordRequired = True
oUser.SetInfo
Set oUser = Nothing
Set oUser = GetObject("WinNT://machinename/username")
oUser.PasswordRequired = True
oUser.SetInfo
Set oUser = Nothing
Heh, I've been playing around with the exact thing, There is a simple lib out, that allows you to execute VBScript from within your programme! 
Its freely avalible from CodeArchiv, http://purearea.net/ -> User libs -> MSScriptControl
And that allows easy access to it all.

Its freely avalible from CodeArchiv, http://purearea.net/ -> User libs -> MSScriptControl
And that allows easy access to it all.
It states on purebasic's site, Even the very first person who brought Purebasic still gets all the upgrades for all OS's, (Even if new OS support comes out) absolutly free, So feel rest assured that if you brought now, And PB suddenly supported 10 other operating systems, and boosted its price to £500, You'd still get all updates free
, thats why i love PB
not like... "Update released for C++ VS, £30 to upgrade!" :s


- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
sorry... but its in pb
from da manual:

Gosub stands for 'Go to sub routine'. A label has to be specified after Gosub then the programme will continue at the label position until it encounters a Return. When a return is reached, the programme is transferred below the Gosub. Gosub is very useful when building fast structured code.