Search found 67 matches

by Maxus
Fri Jan 31, 2025 7:20 am
Forum: Tricks 'n' Tips
Topic: RSA cipher module
Replies: 40
Views: 23725

Re: RSA cipher module


Self test
Generating 4096 bit key pair...
e: 10001
n ...
by Maxus
Wed Jan 11, 2023 12:51 pm
Forum: Tricks 'n' Tips
Topic: WebSocket Server
Replies: 41
Views: 28543

Re: WebSocket Server

CompilerIf Not #PB_Compiler_Thread
CompilerError "Thread-Safe is not activated!"
CompilerEndIf

IncludeFile "tls_server.pbi"
; ##################################################### Module ######################################################

DeclareModule WebSocket_Server ...
by Maxus
Wed Jan 11, 2023 12:50 pm
Forum: Tricks 'n' Tips
Topic: WebSocket Server
Replies: 41
Views: 28543

Re: WebSocket Server

tls_server.pbi
DeclareModule tls_server
Declare ServerUpgrade(Server.i, pem.s)
Declare UpgradeConn(ClientID.i)
Declare SendData(ClientID.i, *Buffer, BufferLenght.i)
Declare ReceiveData(ClientID.i, *Buffer, BufferLenght.i)
Declare isTls(Server.i)
Declare CloseConn(ClientID.i)
Declare ...
by Maxus
Fri Nov 13, 2009 3:41 pm
Forum: Linux
Topic: A Debian/Ubuntu PureBasic installer
Replies: 27
Views: 17874

Re: A Debian/Ubuntu PureBasic installer

I install libxxf86vm-dev for 3DEngine work.
add in DEB pack plz.
by Maxus
Mon Mar 02, 2009 10:04 am
Forum: TailBite
Topic: TailBite V1.4.2 Windows
Replies: 89
Views: 60413

Great works!!! THX!!!
by Maxus
Thu Feb 26, 2009 12:56 pm
Forum: TailBite
Topic: TailBite V1.4.2 Windows
Replies: 89
Views: 60413

Interface HOME
RELEASE()
EndInterface
Structure H4743E164
VH654D4.L
HOME.L
EndStructure

ProcedureDLL CONSTRUCTOR_HOME()
*THIS.H4743E164=HeapAlloc_(GetProcessHeap_(),8,SizeOf(H4743E164))
*THIS\VH654D4=?HOME
ProcedureReturn *THIS
EndProcedure

Procedure HOME_RELEASE(*THIS.H4743E164)
HeapFree ...
by Maxus
Thu Apr 03, 2008 9:33 am
Forum: General Discussion
Topic: COM
Replies: 7
Views: 3682

; ---------------------------------------------------------
; Backrgound downloading with UrlDownloadToFile_()
; Tutorial for creating a COM object with PB
;
; 10/09/2003 by Timo 'Fr34k' Harter
; http://freak.purearea.net
; ---------------------------------------------------------
;
; First, I want ...
by Maxus
Tue Jan 08, 2008 12:03 pm
Forum: Announcement
Topic: PureObject - PureBasic OOP support
Replies: 94
Views: 82613

I would say that that I have experience of writing parsers.
If I offended than you, then ask me to forgive.
by Maxus
Tue Jan 08, 2008 10:32 am
Forum: Announcement
Topic: PureObject - PureBasic OOP support
Replies: 94
Views: 82613

You have performed an analysis of only one file??
And if I want to use the permit IncludeFile I think that it will not?

P.S.
I just want to take a long time already written a Class PreProcessor.
I wonder how you can work.
I can also share their experiences.
by Maxus
Wed Sep 19, 2007 10:15 am
Forum: Coding Questions
Topic: Save image to memory or something else?
Replies: 9
Views: 3014


ReadFile(0, "d:\logiii.ico")
*mem = AllocateMemory(Lof(0))
ReadData(0, *mem, Lof(0))
CloseFile(0)

OpenWindow(0, 200,200,700, 700, "")
CreateGadgetList(WindowID(0))
ButtonGadget(1, 0, 0, 700, 20, "Load")
ImageGadget(2, 0, 20, 700, 700-20, 0)

Repeat
Event = WaitWindowEvent()
Select ...
by Maxus
Wed Sep 12, 2007 8:01 am
Forum: Coding Questions
Topic: How to convert this from C to PB?
Replies: 14
Views: 4534

Maxus it worked! Thank you! But how? :?

Thanks to everyone else who posted some code. All of those were variations I tried too.

What is how?

The whole secret lies in the structure that we declare above.

StructureUnion
F.F
L.F
EndStructureUnion


F.F and L.L invoked in this case at ...
by Maxus
Wed Sep 12, 2007 6:58 am
Forum: Coding Questions
Topic: How to convert this from C to PB?
Replies: 14
Views: 4534

Maybe this code rule.

Code: Select all

Structure AFloat
  StructureUnion
    F.F
    L.L
  EndStructureUnion
EndStructure

Procedure.l ReturnAFloat() 
  fValue.AFloat\F = 42.05 
  ProcedureReturn fValue\L
EndProcedure
by Maxus
Fri Jul 27, 2007 12:08 pm
Forum: TailBite
Topic: TailBite 1.0 Preview, soon in PureProject and PureArea
Replies: 586
Views: 228132

Thank you!!!
by Maxus
Fri Jul 27, 2007 11:50 am
Forum: TailBite
Topic: TailBite 1.0 Preview, soon in PureProject and PureArea
Replies: 586
Views: 228132

Procedure.l ipf_bbTurnEntity(e.l,p.f,y.f,r.f,_global.l=0)
ProcedureReturn bbTurnEntity_(e,p,y,r,_global)
EndProcedure

ProcedureDLL.l bbTurnEntity(e.l,p.f,y.f,r.f,_global.l)
ProcedureReturn ipf_bbTurnEntity(e,p,y,r,_global)
EndProcedure

ProcedureDLL.l bbTurnEntity2(e.l,p.f,y.f,r.f ...
by Maxus
Fri Jul 27, 2007 11:22 am
Forum: TailBite
Topic: TailBite 1.0 Preview, soon in PureProject and PureArea
Replies: 586
Views: 228132

How make
constant #KEY=0
in TailBite?