Search found 58 matches

by peterb
Mon Nov 04, 2013 12:01 pm
Forum: Applications - Feedback and Discussion
Topic: PureSyn (Total Commander ListerPlugin)
Replies: 6
Views: 4294

Re: PureSyn (Total Commander ListerPlugin)

Hi,

I'm trying create my own lister plugin in Purebasic, but my code every time crashing with access violation error. Can You please release main functions of your plugin, which TC call? Without your plugin funcionality.

Thanks, peterb
by peterb
Sat Feb 02, 2013 8:31 pm
Forum: Coding Questions
Topic: Problem with AddPackMemory and UseZipPacker
Replies: 3
Views: 1029

Re: Problem with AddPackMemory and UseZipPacker

I run it several times and here is the number of files in result zip.

73 of 73
73 of 73
73 of 73
73 of 73
12 of 73 !!!
18 of 73 !!!
73 of 73
12 of 73 !!!
12 of 73 !!!
73 of 73
73 of 73
12 of 73 !!!

I don't know why number of files is 12 or 18. :-(

My system is Windows 7 Professional 64bit and ...
by peterb
Fri Feb 01, 2013 10:43 am
Forum: Coding Questions
Topic: Problem with AddPackMemory and UseZipPacker
Replies: 3
Views: 1029

Problem with AddPackMemory and UseZipPacker

Hi,

I have a problem with function AddPackMemory which use UseZipPacker. I run external apps and catch their outputs and then add them in to the zip. But result zip contains only a few of added outputs. I don't know whats wrong and why result zip not contains all of added outputs.

Thanks PeterB ...
by peterb
Tue Aug 07, 2012 1:11 am
Forum: Coding Questions
Topic: Problem with latest LUA static library
Replies: 0
Views: 1080

Problem with latest LUA static library

Hi,

is anybody on this forum who use latest lua52.lib in purebasic? If i replace old version of lua (5.1.2) with the latest (5.2.1) then polink not found some "functions" like lua_call, lua_pcall, lua_tonumber. I tested all versions from page http://sourceforge.net/projects/luabinaries/files/5.2.1 ...
by peterb
Fri Aug 03, 2012 11:18 am
Forum: Coding Questions
Topic: Have two windows of Cmd.exe for two call [Resolved]
Replies: 9
Views: 1895

Re: Have two windows of Cmd.exe for two call

You can try this

Code: Select all

One = RunProgram("cmd")
Delay(1000)
Two = RunProgram("cmd.exe", "/c telnet", "" )
peterb
by peterb
Fri Jun 22, 2012 8:13 am
Forum: Tricks 'n' Tips
Topic: Simple PropertyGrid
Replies: 86
Views: 53641

Re: Simple PropertyGrid

added features:
- lock/unlock section
- color background of section name
- right click on collapse button open popup menu with functions - Expand all, Colapse All, Lock / Unlock
- some macros

peterb




;
; Simple PropertyGrid
;
; by Danilo, May 2012, PureBasic 4.60
;
#PropertyGrid_SectionFont ...
by peterb
Tue Dec 27, 2011 10:32 pm
Forum: Tricks 'n' Tips
Topic: Start program in new process and output its process id
Replies: 1
Views: 1498

Re: Start program in new process and output its process id

a small improvement for regular handling with parameters containing spaces (like path "\Documents and Settings\", etc. )


; .....
Path.s = ProgramParameter ( 0 )

If CountProgramParameters() > 1
For i = 1 To CountProgramParameters() - 1

ParamsPart.s = ProgramParameter ( i )

If Params.s ...
by peterb
Sat Nov 12, 2011 10:28 pm
Forum: Windows
Topic: [PB4.60 x86,Win7] SendMessage_ or structure is different
Replies: 4
Views: 1888

Re: [PB4.60 x86,Win7] SendMessage_ or structure is different

Thanks for checking. After restart it's working properly. Normally I use sleep mode, because I'm lazy to open all programs and source files every time when system starting.

Petr
by peterb
Thu Nov 10, 2011 10:00 pm
Forum: Windows
Topic: [PB4.60 x86,Win7] SendMessage_ or structure is different
Replies: 4
Views: 1888

[PB4.60 x86,Win7] SendMessage_ or structure is different

Hi, I test code for sending messages to change directories in Total Commander and if I run this code in Purebasic 4.51 then everything works fine, but if I run this code in Purebasic 4.60 then nothing happens. Both versions of Purebasic show me same values in debug mode.

Can You please test it ...
by peterb
Sat Mar 05, 2011 10:20 pm
Forum: Tricks 'n' Tips
Topic: Time to milliseconds
Replies: 12
Views: 3959

Re: Time to milliseconds

Code: Select all


Procedure.l ttm ( hr, min = 0, sec = 0)
  ProcedureReturn Date ( 1970, 1, 1, hr, min, sec ) * 1000
  
EndProcedure

Procedure.s mtt ( num.l )
  ProcedureReturn FormatDate ( "%hh:%ii:%ss", num / 1000 )
  
EndProcedure

Debug Str ( ttm ( 23, 33, 03 ) )
Debug mtt ( ttm ( 23, 33, 03 ) )

by peterb
Thu Mar 03, 2011 9:17 pm
Forum: Coding Questions
Topic: Multiple file extensions in ExamineDirectory() ?
Replies: 34
Views: 7217

Re: Multiple file extensions in ExamineDirectory() ?

Hi,

you can use this procedure for multiple file extensions




EnableExplicit

Procedure DirectoryListing ( Directory.s, ExtensionMask.s, Recursive = #False )

Protected FileName.s
Protected FullFileName.s

Protected MyDir = ExamineDirectory ( #PB_Any, Directory, "*.*" )

ExtensionMask ...
by peterb
Fri Oct 01, 2010 2:20 pm
Forum: Tricks 'n' Tips
Topic: Passing all variables between Dinosaurs VB6 to Baby PB
Replies: 13
Views: 3798

Re: Passing all variables between Dinosaurs VB6 to Baby PB

to Vitor_Boss®: in PB exist function StringField



text.s = "This|is|a|Split|Example"
delimiter.s = "|"

ubound = CountString ( text, delimiter )

Dim ExampleArray.s( ubound )

For c = 0 To ubound
ExampleArray( c ) = StringField ( text, c + 1, delimiter )
Debug ExampleArray( c )

Next

by peterb
Wed Sep 08, 2010 12:45 pm
Forum: General Discussion
Topic: Reading content of CD/DVD images
Replies: 0
Views: 907

Reading content of CD/DVD images

Does anybody a code for reading file list from ISO, NRG or other CD/DVD images? I work on disk scanner which make a catalog of files on disk.

Already i have in PureBasic a code for reading file list from these formats: RPM (only information about archive), ACE, ARJ, IMG, RAR, CAB, TAR, LZH, ZIP ...
by peterb
Fri Aug 20, 2010 4:55 pm
Forum: Coding Questions
Topic: File Format Identification
Replies: 6
Views: 1401

Re: File Format Identification

svg, html, xml, .... is text file with defined format and you can determine which format is it.

I didn't write about PLAIN text :-)
by peterb
Fri Aug 20, 2010 10:03 am
Forum: Coding Questions
Topic: File Format Identification
Replies: 6
Views: 1401

Re: File Format Identification

Hi,

I know wotsit.org. My software is not determined for checking errors in files. I use to loading structures for checking content of files. If you use only signature checking, then detection can be mystified. If you detect executable file by two characters MZ then text file is started with MZ ...