Considering PureBasic

Everything else that doesn't fall into one of the other PB categories.
monkeyx
User
User
Posts: 11
Joined: Fri Jul 16, 2004 1:19 pm

Considering PureBasic

Post 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
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post 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.
monkeyx
User
User
Posts: 11
Joined: Fri Jul 16, 2004 1:19 pm

Post 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.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

AFAIK, you can't use Windows API with the demo version.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
monkeyx
User
User
Posts: 11
Joined: Fri Jul 16, 2004 1:19 pm

Post 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 ?
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

PB 6.21 beta, PureVision User
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post 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 :D, thats why i love PB :) not like... "Update released for C++ VS, £30 to upgrade!" :s
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

PB is god'like..



nuff'said


- np
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

PB _is_ god.. were all just procedures and subroutines... :D
Tommeh
Enthusiast
Enthusiast
Posts: 149
Joined: Sun Aug 29, 2004 2:25 pm
Location: United Kingdom

Post by Tommeh »

s... subroutines? Thats VB talk! *kills voilently and adds 'Rated: 18+' to the thread name
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

sorry... but its in pb :D 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.
Post Reply