Page 2 of 4
Posted: Mon Sep 22, 2008 2:42 pm
by lexvictory
Fixed/updated for next version: GetFileVersion() constants, AboutBox() (-1 parameters also)
@chi: ChangeDisplaySettings() works fine on my system - refresh rate included.
Posted: Tue Sep 23, 2008 2:12 am
by chi
hmm, maybe it´s my vga? got an ati x700 64mb...
thx for your respond anyway

Duplicate AboutBox Error
Posted: Sat Nov 01, 2008 3:44 pm
by Randy
Hi all,
I've installed version 1.31.13 and it is telling me that I have already got AboutBox() in Droopy and in Droopy leading me to believe that I have two libraries but I don't see any others. I've even done a file search and this is the only one that turns up.
It may not be the library that's causing the problem but something I've done. Does anyone have any ideas?
Thanks,
Randy
Posted: Sun Nov 02, 2008 1:27 am
by lexvictory
can u post the exact text of the error box?
check that you do not have any old versions still installed (this version has all lib files named Droopy, older versions had differing names.)
also please note that this release is only for PB 4.20. (as you did not specify which PB version, i thought it worth mentioning)
Here it is...
Posted: Sun Nov 02, 2008 2:47 pm
by Randy
Duplicated library command: AboutBox() (in libraries Droopy and Droopy)
I'm running 4.20. However, it's good to ask these questions because I've obviously done something wrong.
What would the other libraries have been named? I have four (including this one) in the UserLibraries folder. JHGadget_400, PureRESIZE, ScintillaStaticFull, and of course, droopy (8/18/2008).
Thanks for your efforts, there are definitely some utilities I could use within this library... if I could just get PureBasic working again.
Randy
Posted: Mon Nov 03, 2008 1:26 am
by lexvictory
hmmm... interesting situation...
open cmd (start>run>type cmd>ok) - the following presumes you know some about cmd... (if u dont, follow every command with a press of the enter key)
type
cd c:\Program Files\purebasic (change this if PB is installed elsewhere)
type
dir /s droopy > droopy.txt
type
notepad droopy.txt
copy and paste the contents of the file into a post
then type
del droopy.txt
then close cmd
the contents of the file should look something like this:
Volume in drive C has no label.
Volume Serial Number is C05B-3B45
Directory of C:\Program Files\PureBasic4.20\PureLibraries\UserLibraries
03/10/2008 09:12 PM 102,437 droopy
1 File(s) 102,437 bytes
Directory of C:\Program Files\PureBasic4.20\SubSystems\UserLibThreadSafe\PureLibraries
03/10/2008 09:11 PM 105,301 droopy
1 File(s) 105,301 bytes
Directory of C:\Program Files\PureBasic4.20\SubSystems\UserLibUnicode\PureLibraries
03/10/2008 09:11 PM 103,181 droopy
1 File(s) 103,181 bytes
Directory of C:\Program Files\PureBasic4.20\SubSystems\UserLibUnicodeThreadSafe\PureLibraries
03/10/2008 09:12 PM 106,129 droopy
1 File(s) 106,129 bytes
Total Files Listed:
4 File(s) 417,758 bytes
0 Dir(s) 6,631,890,944 bytes free
Posted: Tue Dec 02, 2008 2:28 pm
by Frontier
Thank you for supporting this great library.
Any chance to see a PB 4.30 compiled version soon?
Posted: Wed Dec 03, 2008 1:15 am
by lexvictory
Frontier wrote:Any chance to see a PB 4.30 compiled version soon?
when the final comes out; for beta use you can just do an includefile on droopy.pb
Posted: Thu Dec 04, 2008 1:26 pm
by Sveinung
The command RegGetValue is inaccurate when returning #REG_BINARY.
Orginal data was: 00,35,15,0A,8A,37
Value returned was: 002515A8A370
It removed the 0 from the hex value 0A and shifted the whole string left.
This solved the problem for me
Code from RegGetValue procedure
Code: Select all
Case #REG_BINARY
BinaryBytes=1024
*RegBinary=AllocateMemory(BinaryBytes)
GetHandle = RegQueryValueEx_(hKey, ValueName, 0, @lType, *RegBinary, @BinaryBytes)
If GetHandle = 0 ; SUCCESS
GetValue=""
For i = 0 To (BinaryBytes-1 )
Temp3=PeekB(*RegBinary+i)&$FF
;If Temp3<10 : GetValue+"0" : EndIf <<< removed this one
If Len(Hex(Temp3))>1
GetValue+ Hex(Temp3)
Else
GetValue+ "0"+Hex(Temp3)
EndIf
Next
FreeMemory(*RegBinary)
EndIf
Regards
Sveinung
Posted: Wed Dec 17, 2008 7:31 am
by KIKI
Were can i download a new version for PB 4.30 final ?
Thanks,
Posted: Thu Dec 18, 2008 2:01 am
by lexvictory
KIKI wrote:Were can i download a new version for PB 4.30 final ?
Thanks,
Sorry, but "when" would be a more useful question.
It will probably be released by the weekend - as I have just got a new computer (and will now be able to make an x64 version of the lib), and I am still in the process of setting it up.
Posted: Thu Dec 18, 2008 8:59 am
by lexvictory
lexvictory wrote:It will probably be released by the weekend
guess i spoke too soon - I needed the new version sooner than i thought

See the announcement topic for details.
Posted: Sun Dec 21, 2008 11:11 pm
by SFSxOI
How do you use:
Code: Select all
ImpersonateUserRunas(CommandLine.s,Argument.s)
from the lib? Is there an example for it?
Posted: Sun Dec 21, 2008 11:25 pm
by lexvictory
SFSxOI wrote:How do you use:
Code: Select all
ImpersonateUserRunas(CommandLine.s,Argument.s)
from the lib? Is there an example for it?
See Library\Impersonation in the help file
Posted: Mon Jan 05, 2009 11:08 am
by Sveinung
The 'Microsoft OS -> Path' command PathAdd() doesn't work.
Getting an 'Invalid memory access'.
Will test more commands later
Regards
Sveinung