Search found 34 matches

by Andras
Tue Feb 22, 2005 5:48 pm
Forum: Feature Requests and Wishlists
Topic: More simple math functions...
Replies: 19
Views: 6972

Pi=ATan(1)*4
by Andras
Mon Feb 21, 2005 9:12 pm
Forum: General Discussion
Topic: Creating Objects
Replies: 11
Views: 3358

I would prefer something, that automatically destroys objects... For example the object-engine could own a 'destruction-method' that destroys all objects, that aren't selected to 'survive'. I think it's easier to tell, what should survive, than what should be destroyed.

procedure GetASheep.l ...
by Andras
Mon Feb 21, 2005 6:27 pm
Forum: General Discussion
Topic: Creating Objects
Replies: 11
Views: 3358

An extra thread, that deletes the 'object-session' after a 'time-out'?
by Andras
Mon Feb 21, 2005 6:03 pm
Forum: General Discussion
Topic: Creating Objects
Replies: 11
Views: 3358

Hi GedB,

how should the object-engine be able to automatically deallocate the memory, when purebasic does not tell anybody, if a "variable" (memory address) is still in use?
by Andras
Thu Feb 17, 2005 12:48 pm
Forum: General Discussion
Topic: Creating Objects
Replies: 11
Views: 3358

Hmmm, few people seem to be interested in creating objects/components in PB... But I'm going to write a tool where you will be able to define a 'class' and that will write the resulting PB-Sourcefile...
by Andras
Wed Feb 16, 2005 6:43 pm
Forum: General Discussion
Topic: Creating Objects
Replies: 11
Views: 3358

Creating Objects

Hi,

my (german) Help says at the end of the "Interfaces"-Description, that an example for creating own objects is located in the advanced examples in 'PureBasic/Sources'... But I cannot find these examples...

I have seen, that it is possible to create your own objects in PB using Interfaces ( http ...
by Andras
Wed Feb 16, 2005 7:49 am
Forum: Coding Questions
Topic: How do I append bytes in memory?
Replies: 6
Views: 1836

You can simply "shift" the pointer (*Buffer+total_bytes) and directly read to that memoryposition...

This should work (haven't tested it):


*Buffer = AllocateMemory(1024)
bytes_read.l
total_bytes.l = 0
Repeat
Delay(10)
InternetReadFile_(HOR_Handle, *Buffer+total_bytes, 1024, @bytes ...
by Andras
Tue Feb 15, 2005 7:14 pm
Forum: Coding Questions
Topic: syntax editor gadget
Replies: 3
Views: 1308

search the forum for 'scintilla'...
by Andras
Tue Feb 15, 2005 7:52 am
Forum: Coding Questions
Topic: MySQL
Replies: 8
Views: 3236

If you mean my example:

ServerName or ServerIP & DatabaseName:
#DSNAttributes.s="DSN=MyMySQLDSN;SERVER=localhost;database=mysql"

UserName & Password:
If OpenDatabase(#PB_Any, "MyMySQLDSN", "root", "") ...
by Andras
Mon Feb 14, 2005 10:44 pm
Forum: Coding Questions
Topic: MySQL
Replies: 8
Views: 3236

I think, there are 3 main-ways to do this (under windows):

1. Use the Standard-PB-DatabaseLibrary (ODBC)
2. Use the MySQL-API (libmySQL.dll)
3. Use a UserLibrary (I guess someone already has created one?)

Using ODBC you will have to install the "MySQL Connector/ODBC" which can be found at http ...
by Andras
Sat Feb 05, 2005 12:18 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] "Special" floating point values
Replies: 4
Views: 1951

@Pupil: Yes, you're right!...

@TinMan: Sure, IsNAN() would be nice.
by Andras
Fri Feb 04, 2005 10:52 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] "Special" floating point values
Replies: 4
Views: 1951

Take a look at this, you could write your own Check-Functions:

QNAN_Pos.f ;Quiet NAN (Positive)
QNAN_Neg.f ;Quiet NAN (Negative)
SNAN_Pos.f ;Signalling NAN (Positive)
SNAN_Neg.f ;Signalling NAN (Negative)
INF_Pos.f ;Positiv Infinity
INF_Neg.f ;Negative Infinity
Zero_Pos.f ;Positive Zero ...
by Andras
Wed Feb 02, 2005 6:34 pm
Forum: Feature Requests and Wishlists
Topic: MID strings
Replies: 31
Views: 10124

This one should always be faster than yours:

Procedure MidSet_Fast(*PtrStr.BYTE, DestPos.l, DestLen.l, *ReplaceStr.BYTE)

If DestLen>4
CopyMemory(*ReplaceStr,*PtrStr+DestPos-1,DestLen)
ElseIf DestLen=1
*PtrStr+DestPos-1
*PtrStr\b=*ReplaceStr\b
ElseIf DestLen=2
*PtrStr+DestPos-1
*PtrStr ...
by Andras
Wed Feb 02, 2005 4:13 pm
Forum: Feature Requests and Wishlists
Topic: PokeS without NULL-Termination
Replies: 9
Views: 3343

Thanks@Blueznl: You are right - CopyMemory should do what I wanted. The only advantage of PokeS would be, that you don't need to know, where a string is located... For example if the string is in a structure you need to know the offset...
by Andras
Wed Feb 02, 2005 11:07 am
Forum: Feature Requests and Wishlists
Topic: PokeS without NULL-Termination
Replies: 9
Views: 3343

PokeS without NULL-Termination

Hi,

I'd like to have an optional PokeS-Parameter for writing a string without adding a terminating NULL-Char...