ObjectFromLresult_(

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

ObjectFromLresult_(

Post by netmaestro »

If this were brought into the fold, people using objects could avoid doing:

Code: Select all

  OleAcc = OpenLibrary(#PB_Any, "OLEACC.DLL") 
  If OleAcc And GetFunction(OleAcc, "ObjectFromLresult")       
    CallFunction(OleAcc, "ObjectFromLresult", MessageResult, ?IID_IHTMLDocument2, 0, @HtmlDoc)    
    CloseLibrary(OleAcc) 
  EndIf
all the time as it's a very common requirement in using interfaces.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Windows NT/2000/XP/Server 2003: Included in Windows XP and Windows Server 2003.
Windows 95/98/Me: Unsupported.
Redistributable: Requires Active Accessibility 2.0 RDK on Windows NT 4.0 SP6 and Windows 98.
Not a very common function, thats why it is not included.
quidquid Latine dictum sit altum videtur
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Ok, fair enough.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

With Import you should be able to reduce the code size BTW.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Ah yes, good point thanks.
Post Reply