Page 1 of 1
Considering PureBasic
Posted: Thu Feb 03, 2005 5:33 pm
by monkeyx
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
Posted: Thu Feb 03, 2005 6:52 pm
by Tommeh
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.
Posted: Thu Feb 03, 2005 9:44 pm
by monkeyx
Thanks for the reply, should that userlib work with 3.92 demo, as I having problems getting it to run.
Is there anyway to access dll interfaces that would be available to C# ie system.directoryservices etc. As using vbscript add complication to trapping errors.
Posted: Fri Feb 04, 2005 9:08 am
by gnozal
AFAIK, you can't use Windows API with the demo version.
Posted: Fri Feb 04, 2005 12:49 pm
by monkeyx
Thanks for your help. Does anyone know if there is a new version scheduled for release ? If I purchase the latest version, will I get a free upgrade to version 4 ?
Posted: Fri Feb 04, 2005 12:54 pm
by zikitrake
Posted: Fri Feb 04, 2005 5:13 pm
by Tommeh
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
Posted: Fri Feb 04, 2005 5:30 pm
by NoahPhense
PB is god'like..
nuff'said
- np
Posted: Fri Feb 04, 2005 6:00 pm
by thefool
PB _is_ god.. were all just procedures and subroutines...

Posted: Fri Feb 04, 2005 6:05 pm
by Tommeh
s... subroutines? Thats VB talk! *kills voilently and adds 'Rated: 18+' to the thread name
Posted: Fri Feb 04, 2005 6:17 pm
by thefool
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.