Droopy's Lib 1.31.12 (PB4.20)

Developed or developing a new product in PureBasic? Tell the world about it.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

whoops, my fault

i had to add a windowid parameter to some functions when i first compiled it for pb4, because since v4.0, windowid() needs a window number.
i'll update the help file soon, as i think it would need a complete rewrite to get the tooltips functions going without the new parameter
problem was, i lost the help file that i edited for the pb4 version of the lib, so had to remodify the original that i got sent.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
jpd
Enthusiast
Enthusiast
Posts: 167
Joined: Fri May 21, 2004 3:31 pm

Post by jpd »

Hi,

I'm use this Library from long time (I love It)! :D

actually used Version 1.30.9.

on testing one application that Compiled in Unicode Modus,

I found out that the function "PidToFileName" is not

able to works why the used function "GetModuleFileNameEx"

only the ANSI used and not the Unicode.

I have me permitted to change the procedure PidToFileName

and here the results.


Code: Select all

ProcedureDLL.s PidToFileName(PID.l) 
  ; pid.l=0 
  ; GetWindowThreadProcessId_( hWnd, @pid ) 
  hProcess.l = OpenProcess_( #PROCESS_ALL_ACCESS, 0, PID ); 
  Name.s=Space(256) 
  
  If OpenLibrary(0,"PSAPI.DLL") 
    CompilerIf #PB_Compiler_Unicode
    *F=GetFunction(0,"GetModuleFileNameExW") 
    CompilerElse
    *F=GetFunction(0,"GetModuleFileNameExA") 
    CompilerEndIf 
    If *F 
      CallFunctionFast(*F,hProcess,0,@Name,#MAX_PATH ) 
    Else 
      Debug "Fonction non trouvé" 
      CloseLibrary(0) 
      End 
    EndIf 
  Else 
    Debug "Library non ouverte" 
    End 
  EndIf 
  ProcedureReturn Name 
EndProcedure 

Debug PidToFileName(1332)

best
jpd
PB 5.10 Windows 7 x64 SP1
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

new version with fixes will be released in a few days time, along with a version compiled for the new beta.
i say a few days as i am unable to download the new beta, etc where i am.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

new version released, see first post.

still to do:
- fix functions using openlibrary(0, ...)
- find out how to fix background colour in help file
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

updated help file released.
when i made 1.31.9 i couldnt find the help file source for 1.31 and without realising it used the one from 1.30.
this help file is from 1.31.4 and is more updated, but will probably still have some errors.
i think it still has the tooltips functions listed as needing the now removed windowid parameter, but ive only just realised it typing this post, will be fixed for the next version.

http://downloads.sourceforge.net/droopy ... update.chm
download that and replace droopy.chm in the help folder with it. (if the link doesnt work, go to the sourceforge downloads page)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Micko
Enthusiast
Enthusiast
Posts: 244
Joined: Thu May 24, 2007 7:36 pm
Location: Senegal
Contact:

Post by Micko »

hi lexvictory !
some function of droopy lib not work on Unicode mode
ex: AssociateFile() and Remove_AssociateFile()
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

on the list to fix for next version
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
trather
User
User
Posts: 29
Joined: Sun Nov 07, 2004 9:57 pm

Help File

Post by trather »

I got the Lib to work just great. When I go and replace the Help file I have a problem. I go to open the help file and I get the information in the left pane but in the right where the example would be there is a message Navigation to the webpage was canceled. What can I do to fix this.
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Post by Baldrick »

@trather,
Try right clicking on the help file & check that windows has not blocked it
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: Help File

Post by lexvictory »

trather wrote:I got the Lib to work just great. When I go and replace the Help file I have a problem. I go to open the help file and I get the information in the left pane but in the right where the example would be there is a message Navigation to the webpage was canceled. What can I do to fix this.
never heard or seen that happening, try Baldrick's solution, and make sure u deleted the old droopy.chm, and have renamed the new file droopy.chm
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

happens a lot on Vista due to its security features involved with letting another app browse. Right click the .chm, choose 'Properties', click the 'Unblock' button then apply or OK out.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

new version, see original post
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

The droopy lib for PB4.20 is crashing (CRC32=ca873a1f28fdd0249fd99219089028a3 *Droopy)
If i recompile the library with TailBite v1.3 PR 1.876 it works :wink:
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

ABBKlaus wrote:The droopy lib for PB4.20 is crashing (CRC32=ca873a1f28fdd0249fd99219089028a3 *Droopy)
If i recompile the library with TailBite v1.3 PR 1.876 it works :wink:
what was the error?
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

Here, Lexvictory version works fine (you only be sure to delete old Droppy's libs)
PB 6.21 beta, PureVision User
Post Reply