I've tried using PeekQ and PeekL but they aren't working. Maybe the problem is I can't use 32 left shift? PB is only allowing 31 as the maximum.
When you say PeekQ and PeekL aren't working, did you try it like this?
Procedure.l ReadDWord(*MemoryBuffer)
ProcedureReturn PeekL(*MemoryBuffer ...
Search found 5 matches
- Sat Aug 18, 2012 4:22 pm
- Forum: Coding Questions
- Topic: Having touble converting from Java -> PureBasic
- Replies: 3
- Views: 866
- Sat Aug 18, 2012 4:07 pm
- Forum: Coding Questions
- Topic: Having touble converting from Java -> PureBasic
- Replies: 3
- Views: 866
Having touble converting from Java -> PureBasic
Hi everyone, I'm attempting to copy over a game server written in Java. I'm almost through the login decoding but this is the part that is stopping me from finishing.
Java Vesion:
public int readDWord() {
currentOffset += 4;
return ((buffer[currentOffset - 4] & 0xff) << 24) + ((buffer ...
Java Vesion:
public int readDWord() {
currentOffset += 4;
return ((buffer[currentOffset - 4] & 0xff) << 24) + ((buffer ...
- Tue Aug 14, 2012 12:42 am
- Forum: Coding Questions
- Topic: PanelGadget FixedWidth & Spacing
- Replies: 2
- Views: 898
PanelGadget FixedWidth & Spacing
Hi, I'm trying to make every tab on my PanelGadget the same width ... I've tried using #TCS_FIXEDWIDTH but all it does it not show the tabs.
Also, is it possible to increase the vertical spacing between the tab and the panel?
Also, is it possible to increase the vertical spacing between the tab and the panel?
- Fri Jul 27, 2012 3:59 am
- Forum: Assembly and C Programming in PureBasic
- Topic: Call a procedure?
- Replies: 1
- Views: 3484
Call a procedure?
How would I call a procedure with CALL?
This is what I have so far
This is what I have so far
Code: Select all
Procedure Sfl()
Debug 1337
EndProcedure
lol.s = "hi"
lol2.s = "yo"
PUSH dword [v_lol]
PUSH dword [v_lol2]
CALL MessageRequester;
- Thu Jul 26, 2012 7:21 pm
- Forum: Coding Questions
- Topic: Encrypt/Decrypt
- Replies: 2
- Views: 784
Encrypt/Decrypt
How would I encrypt/decrypt my buffer:
I've tried this but I'm not sure how to use it:
http://www.purebasic.fr/english/viewtopic.php?p=282549

Code: Select all
lBuf = AllocateMemory(sfsize)
ReadData(#Source_File, lBuf, sfsize)
CloseFile(#Source_File)
http://www.purebasic.fr/english/viewtopic.php?p=282549