Search found 150 matches

by okasvi
Mon Mar 19, 2007 11:28 pm
Forum: Coding Questions
Topic: Bail out from parent procedure
Replies: 22
Views: 3200

Well, you can't ask for miracles :P
Code simple wrappers for memory functions to do it, so you don't have to change existing code that much...
by okasvi
Mon Mar 19, 2007 8:23 pm
Forum: Coding Questions
Topic: Problem with http GET command...
Replies: 7
Views: 1681

http://www.purebasic-lounge.de/viewtopic.php?p=43193&sid=b5595aaddf14b54d03efbb72d9d1e93c#43193

Should work for Linux, Windows, Mac OS

"Should", hmm, I don't see how it works properly for any of them, since it doesn't even support chunked transfer-encoding, which is one of the requirements of ...
by okasvi
Mon Mar 19, 2007 8:07 pm
Forum: Coding Questions
Topic: Bail out from parent procedure
Replies: 22
Views: 3200

the complete processing can be within a thread that will be terminated if an error occurs,
so the level of nesting is no longer a problem and the main-thread isn't touched at all.... I will have to allocate a lot of memory, which will be flushed down the toilet when I use KillThread().


1 ...
by okasvi
Mon Mar 19, 2007 1:56 pm
Forum: Tricks 'n' Tips
Topic: crc32 with RtlComputeCrc32 (ntdll.dll)
Replies: 7
Views: 4403

bingo wrote:RtlComputeCrc32 is not in pb-standard ntdll.lib ! create a new or use http://kyf.net/tmp/ntdll.zip and it works ... :lol:
or just use LoadLibrary/GetProcAddress... :)
by okasvi
Sat Jan 07, 2006 1:31 pm
Forum: Off Topic
Topic: Is Gates dyslexic?
Replies: 6
Views: 2374

thefool wrote:
dagcrack wrote: I've had nothing but trouble with canadian people..
And the do look quite odd and have a weird sence of humor.. ITS TRUE! I have seen it in the television
:lol:
by okasvi
Sat Jan 07, 2006 4:35 am
Forum: Tricks 'n' Tips
Topic: Boyer-Moore fast string search algorithm
Replies: 31
Views: 13304

Unfortunately I cannot post it there because MASM32's license does not allowd building Open-Source software with it. So it you want it mail me...

I didnt find mention in masm32 licence about disallowing releasing open-source software coded with it...

this is from ..\masm32\html\licence.htm ...
by okasvi
Fri Jan 06, 2006 3:56 am
Forum: Off Topic
Topic: Google ads on this forum
Replies: 43
Views: 9856

Hmmm... shouldn't your signature be,

1 Repeat
2 Eat()
3 Work()
4 Play_WoW()
5 Have_Sex()
6 Sleep()
7 Until Death



shouldnt it be more like:

1 For i = 0 To Len2Days(Len(Life))
2 Eat()
3 Work()
4 Code()
5 Have_Sex()
6 Sleep(Rand(HoursToMS(6),HoursToMS(8)))
7 Next

:P i was too lazy to make ...
by okasvi
Fri Jan 06, 2006 3:20 am
Forum: Tricks 'n' Tips
Topic: PE EntryPoint
Replies: 1
Views: 1982

;part of the code is from thefool, but cant remember who
;posted the filemapping method...
#IMAGE_DOS_SIGNATURE = $5A4D
#IMAGE_NT_SIGNATURE = $4550

File.s=OpenFileRequester("","","",0)

Filehandle=CreateFile_(File.s,#GENERIC_READ ,0,0,#OPEN_ALWAYS ,#FILE_ATTRIBUTE_NORMAL ,0)
Filelength=GetFileSize ...
by okasvi
Wed Dec 28, 2005 6:47 pm
Forum: Off Topic
Topic: Help with spyware!
Replies: 17
Views: 3979

in case you didnt know for last 6months or even longer over 50% out of browser exploits released have been affecting FireFox or dedicated to FireFox... to be honest i think Opera is most safe browser out of IE, FF, Opera... im using FF :|
by okasvi
Wed Dec 28, 2005 6:42 pm
Forum: General Discussion
Topic: anyone with Kaspersky AntiVirus (KAV)...
Replies: 8
Views: 2805

the weird thing is that with KAV it doesnt get "detected" when uncommenting first line... :|
by okasvi
Wed Dec 28, 2005 12:54 pm
Forum: Off Topic
Topic: I want PB version 4 NOW!! :)
Replies: 18
Views: 4970

Stop this demonry (:lol:) at once!
by okasvi
Wed Dec 28, 2005 3:22 am
Forum: General Discussion
Topic: anyone with Kaspersky AntiVirus (KAV)...
Replies: 8
Views: 2805

anyone with Kaspersky AntiVirus (KAV)...

could someone test compiling this with debugger

;OpenLibrary(#PB_Any,"user32.dll")
StrToConvert.s = "String"

Procedure.s StrToHex(Str.s)
StrInHex.s = ""
For i = 1 To Len(Str)
StrInHex = StrInHex + Hex(Asc(Mid(Str, i,1)))+" "
Next
ProcedureReturn StrInHex
EndProcedure

Debug StrToHex ...
by okasvi
Tue Dec 27, 2005 10:47 pm
Forum: Tricks 'n' Tips
Topic: Injecting Procedure to another process
Replies: 66
Views: 24268

Hello,

This code doesn't work with all executables. It works fine with notepad.exe but i tried, for example, "putty.exe" (a windows ssh client) and it fails :shock:

Can someone explain me why ?
Here it is my package (Injector.exe, Injector.pb and putty.exe) : http://www.phlos.com/ovh/Injector ...
by okasvi
Tue Dec 27, 2005 10:45 pm
Forum: Coding Questions
Topic: API for OpenWindow()?
Replies: 10
Views: 2527

josku_x wrote:Thanks, there might be no easier one :\

Just wanted this for my interpeter :lol:
is it bytecode compiler or what?
by okasvi
Mon Dec 26, 2005 4:12 pm
Forum: Coding Questions
Topic: Stupido string questions..
Replies: 21
Views: 5379

Jesus, why are all of you producing such complicated solutions:


String.s="aftershave"
Debug mid(String,findstring(String,"shave",1),len(String))

Why is that less complicated than this?


String.s = "aftershave"
Debug PeekS(@String.s+Len("shave"))



because of PeekS()

Syntax

Text$ = PeekS ...