Search found 10 matches

by rodego
Sat Mar 03, 2012 10:34 am
Forum: Mac OSX
Topic: xCode 4.3+ and NASM
Replies: 22
Views: 9424

Re: xCode 4.3+ and NASM

Okey, here small workaround for MacOSX Lion:


Way #1 (Simple):
Go to https://github.com/kennethreitz/osx-gcc-installer and download package for your MacOS. It's contain everithyng you need: GCC, CLang, NASM, headers, etc.
Package size ~700 mb. If you use this package, than XCode not required for ...
by rodego
Fri Mar 02, 2012 9:16 pm
Forum: Mac OSX
Topic: xCode 4.3+ and NASM
Replies: 22
Views: 9424

xCode 4.3+ and NASM

Hello guys,

I just get computer with OS X Lion, install from appStore last xCode (4.3) version and found, that PureBasic didn't work. On compilation it takes error about unknown command 'sh nasm'. Well, this is obliviously, becouse xCode 4.3 use LLVM instead of gcc+nasm.

So, any ideas, how fix ...
by rodego
Thu Feb 17, 2011 9:07 am
Forum: Feature Requests and Wishlists
Topic: PBSP - PureBasic Server Pages
Replies: 3
Views: 1312

PBSP - PureBasic Server Pages

JSP and ASP makes Web-programming really easy and fast. I don`t see any problem, to make same technology for PB. Make additional code parser, that make DLL\SO from html page with PBSP code and dynamic load DLL\SO on request.
It will be nice - becouse we don`t need to read html file, it`s already in ...
by rodego
Wed Feb 09, 2011 9:02 pm
Forum: Tricks 'n' Tips
Topic: Bash script for fast compiling Linux & Windows 32\64 file
Replies: 2
Views: 1536

Bash script for fast compiling Linux & Windows 32\64 file

Require: Bash, Wine 1.2+, any 64-bit Linux

#!/bin/bash
# Script for PureBasic crosplatform build

# Path to PB compilers
# !!! CHANGE THIS PATH TO YOU PUREBASIC PATHES !!!
PureBasic_Path_Linux_x86="/home/jule/Soft/PureBasic/Linux86"
PureBasic_Path_Linux_x64="/home/jule/Soft/PureBasic/Linux64 ...
by rodego
Fri Jan 28, 2011 11:29 pm
Forum: Feature Requests and Wishlists
Topic: NetworkServerEvent(ServerID)
Replies: 2
Views: 1434

NetworkServerEvent(ServerID)

Ok, I want obtain events only from selected server and ignore events from other servers. Is it posible to add optional argument to NetworkServerEvent function?

Example:

ServerID=CreateNetworkServer(#PB_Any,2000)
OtherServerID=CreateNetworkServer(#PB_Any,2001)

Procedure ServerManager(SID)
Repeat ...
by rodego
Sun Jan 16, 2011 6:34 pm
Forum: Tricks 'n' Tips
Topic: Simply JIT
Replies: 0
Views: 1041

Simply JIT


; Load libs and get function pointers
OpenLibrary(0,"User32.dll")
OpenLibrary(1,"Kernel32.dll")
func.i=GetFunction(0,"MessageBoxA")
func2.i=GetFunction(1,"ExitProcess")

; Allocate strings
#StringBufferSize=200
Title.i=AllocateMemory(#StringBufferSize)
PokeS(Title,"Some caption")
Text.i ...
by rodego
Thu Jan 13, 2011 12:59 pm
Forum: Tricks 'n' Tips
Topic: Getting server IP by host name or url (All OS)
Replies: 9
Views: 4652

Getting server IP by host name or url (All OS)

Procedure.l GetIPByHost(Host$="")
Result.l=0

If Host$=""
Host$=Hostname()
EndIf

SelfLoop=OpenNetworkConnection(Host$,0,#PB_Network_UDP)
If SelfLoop
Result=GetClientIP(SelfLoop)
CloseNetworkConnection(SelfLoop)
EndIf

ProcedureReturn Result
EndProcedure

No real network connection ...
by rodego
Wed Oct 28, 2009 4:40 pm
Forum: Linux
Topic: PB on PC-BSD
Replies: 3
Views: 1207

Re: PB on PC-BSD

Fred wrote:did you do the export PUREBASIC_HOME ?
Yes
by rodego
Sun Oct 25, 2009 3:43 pm
Forum: Linux
Topic: PB on PC-BSD
Replies: 3
Views: 1207

PB on PC-BSD

I can`t make PB work over FreeBSD. Maybe I something lost?

1) Check, update KDE 4 + GTK
2) Install from ports Linux_Base-f10
3) Brandelf -t linux fasm (FASM works fine)
4) Brandelf -t linux pbcompiler (not work - "Can`t found any OS lib")
5) Brandelf -t linux purebasic (not work - "Can`t init ...
by rodego
Mon Aug 17, 2009 7:51 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] Wish:: Fill memory
Replies: 2
Views: 1219

[Implemented] Wish:: Fill memory

Hope, in next version I`ll find something like "FillMemory(*mem, value)" :roll: