Search found 77 matches

by Derlidio
Wed Aug 16, 2006 3:17 am
Forum: Announcement
Topic: DirectPlay Networking (with sources)
Replies: 10
Views: 107185

@Shannara

Yeap... This has been tested with both, on and off (on PB4 code only, cos the 3.94 version doesn't need any other safety measures besides those already in the code). Actually, with the thread safe compiling turned on the code breaks even faster.
by Derlidio
Tue Aug 15, 2006 10:47 pm
Forum: Announcement
Topic: DirectPlay Networking (with sources)
Replies: 10
Views: 107185

DirectPlay Networking (with sources)

Howdy...

Some time ago we have made a DirectPlay wrapper DLL using PureBasic. This DLL covers almost all features of DirectPlay, has full documentation in CHM format for its usage and command set, besides sample applications in some of the most common programming languages around.

We are now ...
by Derlidio
Sat Oct 15, 2005 4:21 am
Forum: Announcement
Topic: K-NetLib licensing now available!
Replies: 10
Views: 10828

@Flype:

This is really strange... I really don't know what could cause such behavior. Can I ask for you system configuration ? (Windows & DirectX versions, at least). I've made several tests with that sample code in my system, but could not replicate the problem you're describing... I really want ...
by Derlidio
Fri Oct 14, 2005 5:56 am
Forum: Announcement
Topic: K-NetLib licensing now available!
Replies: 10
Views: 10828

@Flype

This is quite strange. I had some problems when building that sample application with KNL + PB, but that was becouse I was handling the window close event improperly. Are you having this problem with the original PBChat.exe that comes in KNL package or have you changed the sources and ...
by Derlidio
Thu Sep 01, 2005 4:36 pm
Forum: Coding Questions
Topic: Threads and sharing strings
Replies: 6
Views: 3084

According to MSDN documentation, threads consume almost no CPU at all while waiting to gain ownership of a Critical Section or Mutex object. I've used them a lot, and I can say that they are very light and handy. You can find complete reference on Synchronization API at the following address:

http ...
by Derlidio
Wed Aug 31, 2005 5:15 pm
Forum: Coding Questions
Topic: Threads and sharing strings
Replies: 6
Views: 3084

@Rescator: I'm affraid that would not work. Think this situation:

Imagine that you have 4 threads. The 1st one has locked strings by adjusting the strings_locked variable to #True. The other three threads are waiting inside the while-wend loop. When the 1st thread releases the strings_locked ...
by Derlidio
Tue Aug 30, 2005 9:57 pm
Forum: Coding Questions
Topic: Threads and sharing strings
Replies: 6
Views: 3084

You'll be fine with PB and Threads if you take some precautions when dealing shared data. PB automatically imports functions from system dlls that allow us to accomplish this. The prototype code below shows how:
; This goes at the top of the code.
Global CS_Object.CRITICAL_SECTION ...
by Derlidio
Tue Jun 21, 2005 9:20 pm
Forum: Announcement
Topic: K-NetLib Multiplayer Library
Replies: 6
Views: 2605

I think this is becouse of the DX version you have installed in your system. Can you try to install DirectX 9 and see if it works?

best wishes...

-PJoe
by Derlidio
Tue Jun 21, 2005 5:54 am
Forum: Coding Questions
Topic: Safe Threads and assoc
Replies: 2
Views: 1625

You'll be fine with PB and Threads if you take some precautions when dealing shared data. PB automatically imports functions from system dlls that allows us to accomplish this. These functions are:

; This goes at the top of the code.
Global CS_Object.CRITICAL_SECTION
InitializeCriticalSection_(@CS ...
by Derlidio
Sun Jun 12, 2005 4:23 pm
Forum: Announcement
Topic: K-NetLib Multiplayer Library
Replies: 6
Views: 2605

The PureBasic wrapper is already there, in the setup package. I can assure this becouse I've made it :P

It is just the site that needs a little update :)

best wishes...

-PJoe
by Derlidio
Sun Jun 12, 2005 2:03 am
Forum: Announcement
Topic: K-NetLib Multiplayer Library
Replies: 6
Views: 2605

K-NetLib Multiplayer Library

Krylar's Kreations is proud to announce the release of K-NetLib, a DLL for acessing and controling Microsoft DirectPlay. Having almost 150 commands, K-NetLib covers all major features of DirectPlay, and we have plans to cover it entirely in a near future. The product is fully documented and you'll ...
by Derlidio
Tue Jun 07, 2005 2:32 am
Forum: General Discussion
Topic: Threads and Strings ?
Replies: 20
Views: 7544

Yippe...

I don't know if PB works with different Heaps, one for Strings and other(s) for any other type of data. The problem I'm experiencing with unsafe strings may not be related only to strings. If PB Heap Allocation routines are not secured with any kind of serialization, then we may experience ...
by Derlidio
Tue Jun 07, 2005 12:17 am
Forum: General Discussion
Topic: Threads and Strings ?
Replies: 20
Views: 7544

I've run into the same problem, and as far as I could notice, it is not safe to use PB strings (no matter if shared or not) in threads. This may not cause problems in all computers. When the user is running on single processor machines, you may never see the problem. But when they run in multi ...
by Derlidio
Mon May 02, 2005 4:55 am
Forum: Coding Questions
Topic: LoadLibrary() Question
Replies: 3
Views: 1413

Yippe!

As far as I know, the DLL Importer creates a wrapper library that makes the functions of the DLL you import available like those WinAPI commands (with an underscore at the end of the name). So, this way you'll not need the openlibrary, callfunction, etc.

I've not used it yet, :oops: but ...
by Derlidio
Mon May 02, 2005 4:02 am
Forum: Coding Questions
Topic: LoadLibrary() Question
Replies: 3
Views: 1413

Guess who? :roll:

Under your PB installation folder, look for a "Library SDK" folder, and under that, look for a "DLL Importer" folder.
Read the Readme.txt file you'll find there. I think it shows a good way for accomplishing what you want :wink:

Best wishes...

- PJoe